From 8194b2d514b413ea0dafd6d67e9fa1daf9dd19ad Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 28 Jan 2021 13:07:53 +0800 Subject: [PATCH] crimson/osd: group stats related methods together for better readability Signed-off-by: Kefu Chai --- src/crimson/osd/pg.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/crimson/osd/pg.h b/src/crimson/osd/pg.h index f290a145963dc..61d3f407891c8 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(); -- 2.39.5