From: Kefu Chai Date: Thu, 28 Jan 2021 05:07:53 +0000 (+0800) Subject: crimson/osd: group stats related methods together X-Git-Tag: v17.1.0~3115^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8194b2d514b413ea0dafd6d67e9fa1daf9dd19ad;p=ceph.git crimson/osd: group stats related methods together for better readability Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/pg.h b/src/crimson/osd/pg.h index f290a145963d..61d3f407891c 100644 --- a/src/crimson/osd/pg.h +++ b/src/crimson/osd/pg.h @@ -274,10 +274,6 @@ public: void clear_want_pg_temp() final { shard_services.remove_want_pg_temp(pgid.pgid); } - void publish_stats_to_osd() final; - void clear_publish_stats() final { - // Not needed yet - } void check_recovery_sources(const OSDMapRef& newmap) final { // Not needed yet } @@ -440,7 +436,6 @@ public: bool is_backfilling() const final { return peering_state.is_backfilling(); } - pg_stat_t get_stats(); bool get_need_up_thru() const { return peering_state.get_need_up_thru(); } @@ -559,7 +554,6 @@ public: return shard_services; } seastar::future<> stop(); - private: std::unique_ptr backend; std::unique_ptr recovery_backend; @@ -567,6 +561,13 @@ private: PeeringState peering_state; eversion_t projected_last_update; +public: + // PeeringListener + void publish_stats_to_osd() final; + void clear_publish_stats() final { + // Not needed yet + } + pg_stat_t get_stats(); public: RecoveryBackend* get_recovery_backend() final { return recovery_backend.get();