diff --git a/src/osd/PGBackend.h b/src/osd/PGBackend.h index 66bb890af01..b50f0d8c78c 100644 --- a/src/osd/PGBackend.h +++ b/src/osd/PGBackend.h @@ -132,6 +132,8 @@ typedef ceph::shared_ptr OSDMapRef; OpRequestRef op = OpRequestRef() ) = 0; virtual epoch_t get_epoch() const = 0; + virtual epoch_t get_interval_start_epoch() const = 0; + virtual epoch_t get_last_peering_reset_epoch() const = 0; virtual const set &get_actingbackfill_shards() const = 0; virtual const set &get_acting_shards() const = 0; diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index 1ebde000c5b..3d870582a7f 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -289,6 +289,12 @@ public: epoch_t get_epoch() const override { return get_osdmap()->get_epoch(); } + epoch_t get_interval_start_epoch() const override { + return info.history.same_interval_since; + } + epoch_t get_last_peering_reset_epoch() const override { + return get_last_peering_reset(); + } const set &get_actingbackfill_shards() const override { return actingbackfill; }