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: v12.1.0~57^2~27^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3b028a6d1ba74ed975ebd665b1b50fb7e5039a4;p=ceph.git osd: print out pg debug ref counts on acquire/drop Signed-off-by: Greg Farnum --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 70c3a380717..3b22ff5d4b9 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -187,7 +187,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; @@ -195,7 +195,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));