From 49478dd3d29647c1c9eb785d5218d5f41ec12b6d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 22 Jul 2019 14:50:11 -0500 Subject: [PATCH] crimson/osd: stubs for get_mnow, get_hbstamps Signed-off-by: Sage Weil --- src/crimson/osd/pg.h | 7 +++++++ src/crimson/osd/shard_services.cc | 10 ++++++++++ src/crimson/osd/shard_services.h | 5 +++++ 3 files changed, 22 insertions(+) diff --git a/src/crimson/osd/pg.h b/src/crimson/osd/pg.h index a818470ae61..71ea028b0da 100644 --- a/src/crimson/osd/pg.h +++ b/src/crimson/osd/pg.h @@ -377,6 +377,13 @@ public: return OstreamTemp(CLOG_ERROR, nullptr); } + ceph::signedspan get_mnow() final { +#warning writeme + } + HeartbeatStampsRef get_hb_stamps(int peer) final { +#warning write me + } + // Utility bool is_primary() const { return peering_state.is_primary(); diff --git a/src/crimson/osd/shard_services.cc b/src/crimson/osd/shard_services.cc index be99970c2ef..c27d5bf25d6 100644 --- a/src/crimson/osd/shard_services.cc +++ b/src/crimson/osd/shard_services.cc @@ -245,4 +245,14 @@ seastar::future<> ShardServices::osdmap_subscribe(version_t epoch, bool force_re } } +ceph::signedspan ShardServices::get_mnow() +{ +#warning write me +} + +HeartbeatStampsRef ShardServices::get_hb_stamps(int peer) +{ +#warning write me +} + }; diff --git a/src/crimson/osd/shard_services.h b/src/crimson/osd/shard_services.h index 62b3932c411..388335c7a0a 100644 --- a/src/crimson/osd/shard_services.h +++ b/src/crimson/osd/shard_services.h @@ -9,6 +9,7 @@ #include "osd_operation.h" #include "msg/MessageRef.h" #include "crimson/os/cyan_collection.h" +#include "osd/PeeringState.h" namespace ceph::net { class Messenger; @@ -141,6 +142,10 @@ public: void prune_pg_created(); seastar::future<> osdmap_subscribe(version_t epoch, bool force_request); + + ceph::signedspan get_mnow(); + HeartbeatStampsRef get_hb_stamps(int peer); + }; -- 2.39.5