]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: print oid of missing clone 49000/head
authorKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 04:20:55 +0000 (12:20 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 05:54:41 +0000 (13:54 +0800)
instead of printing the empty optional<>, print the oid of missing
clone. the oid is more interesting in this context.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/osd/pg.cc

index 7f30c1d2865c57a3f2606b7ba095f5e116a55019..6a386bcacdc7c8b1ea7ca005a7f240ca9842cd87 100644 (file)
@@ -1081,7 +1081,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);
+      logger().error("with_clone_obc: {} clone not found", oid);
       return load_obc_iertr::future<>{crimson::ct_error::enoent::make()};
     }
     auto [clone, existed] = shard_services.get_cached_obc(*coid);