]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: mark PG::get_locked_obc() private
authorKefu Chai <kchai@redhat.com>
Fri, 6 Nov 2020 03:15:15 +0000 (11:15 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Nov 2020 09:37:59 +0000 (17:37 +0800)
this methods is used by PG::with_locked_obc(). so mark it private.

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

index 9cd17c5054a267c5aed754fb6c1344de55897543..1a2173231f60bb54c4d08b7fd5f202b6be86f38a 100644 (file)
@@ -508,10 +508,6 @@ public:
   load_obc_ertr::future<crimson::osd::ObjectContextRef>
   load_head_obc(ObjectContextRef obc);
 
-  load_obc_ertr::future<ObjectContextRef> get_locked_obc(
-    Operation *op,
-    const hobject_t &oid,
-    RWState::State type);
 public:
   using with_obc_func_t = std::function<seastar::future<> (ObjectContextRef)>;
   load_obc_ertr::future<> with_locked_obc(
@@ -528,6 +524,11 @@ public:
   void dump_primary(Formatter*);
 
 private:
+  load_obc_ertr::future<ObjectContextRef> get_locked_obc(
+    Operation *op,
+    const hobject_t &oid,
+    RWState::State type);
+
   void do_peering_event(
     const boost::statechart::event_base &evt,
     PeeringCtx &rctx);