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(),
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&&);
}
// 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);
}).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());