crimson::ct_error::enoent::make()
};
}
- auto coid = resolve_oid(head->get_head_ss(), oid);
- if (!coid) {
- ERRORDPP("clone {} not found", dpp, oid);
- return load_obc_iertr::future<>{
- crimson::ct_error::enoent::make()
- };
- }
- auto [clone, existed] = obc_registry.get_cached_obc(*coid);
+#ifndef NDEBUG
+ auto &ss = head->get_head_ss();
+ auto cit = std::find(
+ std::begin(ss.clones), std::end(ss.clones), oid.snap);
+ assert(cit != std::end(ss.clones));
+#endif
+ auto [clone, existed] = obc_registry.get_cached_obc(oid);
return clone->template with_lock<State, IOInterruptCondition>(
[existed=existed, clone=std::move(clone),
func=std::move(func), head=std::move(head), this]()