]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: debug: improve maybe_handle_cache() handling
authorSage Weil <sage@inktank.com>
Tue, 10 Dec 2013 17:52:03 +0000 (09:52 -0800)
committerSage Weil <sage@inktank.com>
Sat, 14 Dec 2013 00:35:57 +0000 (16:35 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 09c912bc3af29bb63e11de2e9b94477c75f48c57..56c9fdae764357f90e18336caa2239613824f355 100644 (file)
@@ -1222,8 +1222,15 @@ void ReplicatedPG::do_op(OpRequestRef op)
 bool ReplicatedPG::maybe_handle_cache(OpRequestRef op, ObjectContextRef obc,
                                       int r)
 {
+  if (obc)
+    dout(25) << __func__ << " " << obc->obs.oi << " "
+            << (obc->obs.exists ? "exists" : "DNE") << dendl;
+  else
+    dout(25) << __func__ << " (no obc)" << dendl;
+
   if (obc.get() && obc->is_blocked()) {
     // we're already doing something with this object
+    dout(20) << __func__ << " blocked on " << obc->obs.oi.soid << dendl;
     return false;
   }