From fa3025f3ba6670d5782d17ac7114806a91684f64 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 22 Nov 2022 12:20:55 +0800 Subject: [PATCH] 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 --- src/crimson/osd/pg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5