From: Greg Farnum Date: Thu, 25 May 2017 01:43:34 +0000 (-0700) Subject: osd: print out pg debug ref counts on acquire/drop X-Git-Tag: v11.2.1~21^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cc0046a999600b2e684c17fddaebcf451c259443;p=ceph.git osd: print out pg debug ref counts on acquire/drop Signed-off-by: Greg Farnum (cherry picked from commit a3b028a6d1ba74ed975ebd665b1b50fb7e5039a4) --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index e785d1bcbce..f6c99381b74 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -120,7 +120,7 @@ uint64_t PG::get_with_id() BackTrace bt(0); stringstream ss; bt.print(ss); - dout(20) << __func__ << ": " << info.pgid << " got id " << id << dendl; + dout(20) << __func__ << ": " << info.pgid << " got id " << id << " (new) ref==" << ref << dendl; assert(!_live_ids.count(id)); _live_ids.insert(make_pair(id, ss.str())); return id; @@ -128,7 +128,7 @@ uint64_t PG::get_with_id() void PG::put_with_id(uint64_t id) { - dout(20) << __func__ << ": " << info.pgid << " put id " << id << dendl; + dout(20) << __func__ << ": " << info.pgid << " put id " << id << " (current) ref==" << ref << dendl; { Mutex::Locker l(_ref_id_lock); assert(_live_ids.count(id));