]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: mark more OSD methods private
authorKefu Chai <kchai@redhat.com>
Thu, 24 Jun 2021 06:34:41 +0000 (14:34 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 24 Jun 2021 08:07:29 +0000 (16:07 +0800)
they are internal helpers, not part of the public interface of the OSD
class.

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

index 59b7cf50c0083668fc5985ddbcd2ae549860b7bb..6addb3b91cc07e910485377a39469cfedd551e3f 100644 (file)
@@ -224,6 +224,12 @@ private:
     stop_acked.set_value();
   }
   seastar::future<> prepare_to_stop();
+  bool should_restart() const;
+  seastar::future<> restart();
+  seastar::future<> shutdown();
+  void update_heartbeat_peers();
+  friend class PGAdvanceMap;
+
 public:
   blocking_future<Ref<PG>> get_or_create_pg(
     spg_t pgid,
@@ -232,15 +238,7 @@ public:
   blocking_future<Ref<PG>> wait_for_pg(
     spg_t pgid);
   Ref<PG> get_pg(spg_t pgid);
-
-  bool should_restart() const;
-  seastar::future<> restart();
-  seastar::future<> shutdown();
-
   seastar::future<> send_beacon();
-  void update_heartbeat_peers();
-
-  friend class PGAdvanceMap;
 };
 
 inline std::ostream& operator<<(std::ostream& out, const OSD& osd) {