]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: group stats related methods together
authorKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 05:07:53 +0000 (13:07 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 05:22:01 +0000 (13:22 +0800)
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.h

index f290a145963dc19859f5d9aa4b918610a4c70b7b..61d3f407891c824bdf767110e25a0596ed07f8af 100644 (file)
@@ -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<PGBackend> backend;
   std::unique_ptr<RecoveryBackend> 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();