diff options
author | Sage Weil <sage@newdream.net> | 2012-01-25 09:56:58 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-01-25 09:56:58 -0800 |
commit | acb164c81e8142d5489585a124a38347ad192e35 (patch) | |
tree | 323b33c5f6ddc0db5899ca8b29e7884a2645702a | |
parent | 44b11441ad3ef231ff207476bbb0d2e8ab130f26 (diff) | |
download | ceph-acb164c81e8142d5489585a124a38347ad192e35.tar.gz |
osd: improve object context debug output
Include pointer. This may help with #1979.
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 1d7fd422ff4..d2185fee5b6 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3296,7 +3296,7 @@ ReplicatedPG::ObjectContext *ReplicatedPG::get_object_context(const hobject_t& s ObjectContext *obc; if (p != object_contexts.end()) { obc = p->second; - dout(10) << "get_object_context " << soid << " " << obc->ref + dout(10) << "get_object_context " << obc << " " << soid << " " << obc->ref << " -> " << (obc->ref+1) << dendl; } else { // check disk @@ -3335,7 +3335,7 @@ ReplicatedPG::ObjectContext *ReplicatedPG::get_object_context(const hobject_t& s } else { obc->obs.exists = false; } - dout(10) << "get_object_context " << soid << " read " << obc->obs.oi << dendl; + dout(10) << "get_object_context " << obc << " " << soid << " 0 -> 1 read " << obc->obs.oi << dendl; } obc->ref++; return obc; @@ -3453,7 +3453,7 @@ int ReplicatedPG::find_object_context(const hobject_t& oid, void ReplicatedPG::put_object_context(ObjectContext *obc) { - dout(10) << "put_object_context " << obc->obs.oi.soid << " " + dout(10) << "put_object_context " << obc << " " << obc->obs.oi.soid << " " << obc->ref << " -> " << (obc->ref-1) << dendl; if (mode.wake) { |