From cc0046a999600b2e684c17fddaebcf451c259443 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 24 May 2017 18:43:34 -0700 Subject: [PATCH] osd: print out pg debug ref counts on acquire/drop Signed-off-by: Greg Farnum (cherry picked from commit a3b028a6d1ba74ed975ebd665b1b50fb7e5039a4) --- src/osd/PG.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.47.3