From: Xuehan Xu Date: Tue, 18 Jul 2023 06:12:59 +0000 (+0800) Subject: crimson/osd/object_context_loader: rename with_head_and_clone_obc to X-Git-Tag: v18.2.1~156^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=39ccac555b3bac77c46626dd2dc64e0bd0ed2a24;p=ceph.git crimson/osd/object_context_loader: rename with_head_and_clone_obc to with_clone_obc_direct Signed-off-by: Xuehan Xu (cherry picked from commit ec646eb22bfd30f6cf19c86fe24c233001272047) --- diff --git a/src/crimson/osd/object_context_loader.cc b/src/crimson/osd/object_context_loader.cc index 4cdbda7876a..939ce536822 100644 --- a/src/crimson/osd/object_context_loader.cc +++ b/src/crimson/osd/object_context_loader.cc @@ -82,11 +82,11 @@ using crimson::common::local_conf; template 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( 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( + ObjectContextLoader::with_clone_obc_direct( hobject_t, with_both_obc_func_t&&); } diff --git a/src/crimson/osd/object_context_loader.h b/src/crimson/osd/object_context_loader.h index 82e2c1e4dd5..3ab7f6ad80f 100644 --- a/src/crimson/osd/object_context_loader.h +++ b/src/crimson/osd/object_context_loader.h @@ -53,7 +53,7 @@ public: // object *and* the matching clone object are being used // in func. template - 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); diff --git a/src/crimson/osd/osd_operations/snaptrim_event.cc b/src/crimson/osd/osd_operations/snaptrim_event.cc index e63e78481ac..82bfe8068a9 100644 --- a/src/crimson/osd/osd_operations/snaptrim_event.cc +++ b/src/crimson/osd/osd_operations/snaptrim_event.cc @@ -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( + // with_clone_obc_direct lock both clone's and head's obcs + return pg->obc_loader.with_clone_obc_direct( coid, [this](auto head_obc, auto clone_obc) { logger().debug("{}: got clone_obc={}", *this, clone_obc->get_oid());