]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: dump pg ref ids on shutdown 3748/head
authorSage Weil <sage@redhat.com>
Tue, 17 Feb 2015 00:36:04 +0000 (16:36 -0800)
committerSage Weil <sage@redhat.com>
Tue, 17 Feb 2015 01:30:56 +0000 (17:30 -0800)
(if ref debugging is enabled)

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index 27296bcefdec6ea319b5deac32af5d8cbdb7a1f5..685319d5d8efa5811bae013c43444512eea7c170 100644 (file)
@@ -2365,6 +2365,9 @@ int OSD::shutdown()
       if (p->second->ref.read() != 1) {
         derr << "pgid " << p->first << " has ref count of "
             << p->second->ref.read() << dendl;
+#ifdef PG_DEBUG_REFS
+       p->second->dump_live_ids();
+#endif
         assert(0);
       }
       p->second->unlock();