]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/PrimaryLogPG: Log ObjectContext instead of address
authorMatan Breizman <mbreizma@redhat.com>
Mon, 14 Nov 2022 12:06:56 +0000 (12:06 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 14 Nov 2022 13:27:16 +0000 (13:27 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/osd/PrimaryLogPG.cc

index b61f602730120e32800db07879f7c4b6eb1bae9f..f79abb7fc52861b8e73eafa3e68244d0de5cbd50 100644 (file)
@@ -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