]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/pg: with_clone_obc() return object_corrupted when not found
authorMatan Breizman <mbreizma@redhat.com>
Thu, 4 Aug 2022 10:57:47 +0000 (10:57 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 18 Aug 2022 10:59:26 +0000 (10:59 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/pg.cc

index 92485972a786f2187980f6e5c9606742d9c0b1db..961d4f9eaff8fa4884c3ccbcfdfee87b375e07bf 100644 (file)
@@ -1033,9 +1033,8 @@ PG::with_clone_obc(hobject_t oid, with_obc_func_t&& func)
     [oid, func=std::move(func), this](auto head) -> load_obc_iertr::future<> {
     auto coid = resolve_oid(head->get_ro_ss(), oid);
     if (!coid) {
-      // TODO: return crimson::ct_error::enoent::make();
       logger().error("with_clone_obc: {} clone not found", coid);
-      return load_obc_ertr::make_ready_future<>();
+      return load_obc_iertr::future<>{crimson::ct_error::object_corrupted::make()};
     }
     auto [clone, existed] = shard_services.get_cached_obc(*coid);
     return clone->template with_lock<State>(