From 157baada2347566619da95dfa664eb0a73b77904 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Mon, 14 Nov 2022 12:06:56 +0000 Subject: [PATCH] osd/PrimaryLogPG: Log ObjectContext instead of address Signed-off-by: Matan Breizman --- src/osd/PrimaryLogPG.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index b61f6027301..f79abb7fc52 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -11732,7 +11732,7 @@ void PrimaryLogPG::populate_obc_watchers(ObjectContextRef obc) void PrimaryLogPG::handle_watch_timeout(WatchRef watch) { ObjectContextRef obc = watch->get_obc(); // handle_watch_timeout owns this ref - dout(10) << "handle_watch_timeout obc " << obc << dendl; + dout(10) << "handle_watch_timeout obc " << *obc << dendl; if (!is_active()) { dout(10) << "handle_watch_timeout not active, no-op" << dendl; @@ -11831,7 +11831,7 @@ ObjectContextRef PrimaryLogPG::get_object_context( osd->logger->inc(l_osd_object_ctx_cache_total); if (obc) { osd->logger->inc(l_osd_object_ctx_cache_hit); - dout(10) << __func__ << ": found obc in cache: " << obc + dout(10) << __func__ << ": found obc in cache: " << *obc << dendl; } else { dout(10) << __func__ << ": obc NOT found in cache: " << soid << dendl; @@ -11860,8 +11860,7 @@ ObjectContextRef PrimaryLogPG::get_object_context( soid, true, 0, false); ceph_assert(ssc); obc = create_object_context(oi, ssc); - dout(10) << __func__ << ": " << obc << " " << soid - << " " << obc->rwstate + dout(10) << __func__ << ": " << *obc << " oi: " << obc->obs.oi << " ssc: " << obc->ssc << " snapset: " << obc->ssc->snapset << dendl; @@ -11903,7 +11902,7 @@ ObjectContextRef PrimaryLogPG::get_object_context( } } - dout(10) << __func__ << ": creating obc from disk: " << obc + dout(10) << __func__ << ": creating obc from disk: " << *obc << dendl; } @@ -11913,8 +11912,7 @@ ObjectContextRef PrimaryLogPG::get_object_context( return ObjectContextRef(); // -ENOENT! } - dout(10) << __func__ << ": " << obc << " " << soid - << " " << obc->rwstate + dout(10) << __func__ << ": " << *obc << " oi: " << obc->obs.oi << " exists: " << (int)obc->obs.exists << " ssc: " << obc->ssc -- 2.39.5