]> git-server-git.apps.pok.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>
Tue, 18 Jul 2017 20:23:38 +0000 (13:23 -0700)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit a3b028a6d1ba74ed975ebd665b1b50fb7e5039a4)

src/osd/PG.cc

index e785d1bcbce6e8c0665a0a71333951d36f9d7103..f6c99381b74c1c12cc693fab600f559d29f837df 100644 (file)
@@ -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));