logger().debug("with_head_obc: found {} in cache", oid);
} else {
logger().debug("with_head_obc: cache miss on {}", oid);
- loaded = obc->with_promoted_lock<RWState::RWEXCL>([this, obc] {
+ loaded = obc->with_promoted_lock<State>([this, obc] {
return load_head_obc(obc);
});
}
logger().debug("with_clone_obc: found {} in cache", coid);
} else {
logger().debug("with_clone_obc: cache miss on {}", coid);
- loaded = clone->template with_promoted_lock<RWState::RWEXCL>(
+ loaded = clone->template with_promoted_lock<State>(
[coid, clone, head, this] {
return backend->load_metadata(coid).safe_then(
[coid, clone=std::move(clone), head=std::move(head)](auto md) mutable {