]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: return enoent when PG::resolve_oid() fails
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 11 Oct 2022 13:36:07 +0000 (13:36 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 11 Oct 2022 14:39:35 +0000 (14:39 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h

index 2c826bffd0a26585a45bafa9491310a367a596f2..641f6d28723c4fa439953880e2b6ea5f1e8fa6a8 100644 (file)
@@ -1074,7 +1074,7 @@ PG::with_clone_obc(hobject_t oid, with_obc_func_t&& func)
     auto coid = resolve_oid(head->get_ro_ss(), oid);
     if (!coid) {
       logger().error("with_clone_obc: {} clone not found", coid);
-      return load_obc_iertr::future<>{crimson::ct_error::object_corrupted::make()};
+      return load_obc_iertr::future<>{crimson::ct_error::enoent::make()};
     }
     auto [clone, existed] = shard_services.get_cached_obc(*coid);
     return clone->template with_lock<State, IOInterruptCondition>(
index c65149e40e31123cfe5d73e7963e07578dd4accb..db1b2ddfb11a529f881a8fcfc1ebd1cd059d7404 100644 (file)
@@ -510,6 +510,7 @@ public:
     const hobject_t &oid);
 
   using load_obc_ertr = crimson::errorator<
+    crimson::ct_error::enoent,
     crimson::ct_error::object_corrupted>;
   using load_obc_iertr =
     ::crimson::interruptible::interruptible_errorator<