]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/object_context_loader: rename with_head_and_clone_obc to
authorXuehan Xu <xuxuehan@qianxin.com>
Tue, 18 Jul 2023 06:12:59 +0000 (14:12 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:53:06 +0000 (11:53 +0000)
with_clone_obc_direct

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit ec646eb22bfd30f6cf19c86fe24c233001272047)

src/crimson/osd/object_context_loader.cc
src/crimson/osd/object_context_loader.h
src/crimson/osd/osd_operations/snaptrim_event.cc

index 4cdbda7876aaf3d146243a82ffbf37d91a95930c..939ce536822db9d52fd7510b1f446c8e2120f8ac 100644 (file)
@@ -82,11 +82,11 @@ using crimson::common::local_conf;
 
   template<RWState::State State>
   ObjectContextLoader::load_obc_iertr::future<>
-  ObjectContextLoader::with_head_and_clone_obc(
+  ObjectContextLoader::with_clone_obc_direct(
     hobject_t oid,
     with_both_obc_func_t&& func)
   {
-    LOG_PREFIX(ObjectContextLoader::with_head_and_clone_obc);
+    LOG_PREFIX(ObjectContextLoader::with_clone_obc_direct);
     assert(!oid.is_head());
     return with_obc<RWState::RWREAD>(
       oid.get_head(),
@@ -227,7 +227,7 @@ using crimson::common::local_conf;
                                                  with_obc_func_t&&);
 
   template ObjectContextLoader::load_obc_iertr::future<>
-  ObjectContextLoader::with_head_and_clone_obc<RWState::RWWRITE>(
+  ObjectContextLoader::with_clone_obc_direct<RWState::RWWRITE>(
     hobject_t,
     with_both_obc_func_t&&);
 }
index 82e2c1e4dd5449eb61a6d2bb9042509dfb8cc111..3ab7f6ad80fdc70dba90372c882c439f90351eb9 100644 (file)
@@ -53,7 +53,7 @@ public:
   // object *and* the matching clone object are being used
   // in func.
   template<RWState::State State>
-  load_obc_iertr::future<> with_head_and_clone_obc(
+  load_obc_iertr::future<> with_clone_obc_direct(
     hobject_t oid,
     with_both_obc_func_t&& func);
 
index e63e78481ac1b60fa840f5a48ac24a7f658335c3..82bfe8068a9d2bfc4559c20871b22aae3d89e414 100644 (file)
@@ -499,8 +499,8 @@ SnapTrimObjSubEvent::with_pg(
   }).then_interruptible([this] {
     logger().debug("{}: getting obc for {}", *this, coid);
     // end of commonality
-    // with_head_and_clone_obc lock both clone's and head's obcs
-    return pg->obc_loader.with_head_and_clone_obc<RWState::RWWRITE>(
+    // with_clone_obc_direct lock both clone's and head's obcs
+    return pg->obc_loader.with_clone_obc_direct<RWState::RWWRITE>(
       coid,
       [this](auto head_obc, auto clone_obc) {
       logger().debug("{}: got clone_obc={}", *this, clone_obc->get_oid());