From: Sage Weil Date: Tue, 10 Dec 2013 17:52:03 +0000 (-0800) Subject: osd/ReplicatedPG: debug: improve maybe_handle_cache() handling X-Git-Tag: v0.75~45^2~35 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f86d6e77948a33d38e0fd88c70b7709c7ad397b0;p=ceph.git osd/ReplicatedPG: debug: improve maybe_handle_cache() handling Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 09c912bc3af2..56c9fdae7643 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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; }