From: Sage Weil Date: Tue, 17 Feb 2015 00:36:04 +0000 (-0800) Subject: osd: dump pg ref ids on shutdown X-Git-Tag: suse_latest~39^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3748%2Fhead;p=ceph.git osd: dump pg ref ids on shutdown (if ref debugging is enabled) Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 27296bcefde..685319d5d8e 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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();