]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: print out pg debug ref counts on acquire/drop
authorGreg Farnum <gfarnum@redhat.com>
Thu, 25 May 2017 01:43:34 +0000 (18:43 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Thu, 25 May 2017 18:42:10 +0000 (11:42 -0700)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/osd/PG.cc

index 70c3a3807173338469dc78ccbc642c89a999035b..3b22ff5d4b9574772defeb3fb0a6e6b731c7d145 100644 (file)
@@ -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));