From: Kefu Chai Date: Tue, 22 Nov 2022 04:20:55 +0000 (+0800) Subject: crimson/osd: print oid of missing clone X-Git-Tag: v18.1.0~846^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fa3025f3ba6670d5782d17ac7114806a91684f64;p=ceph.git crimson/osd: print oid of missing clone 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 --- diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index 7f30c1d2865c5..6a386bcacdc7c 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -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);