]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make load_pgs verbose
authorSage Weil <sage@newdream.net>
Mon, 4 Oct 2010 15:44:38 +0000 (08:44 -0700)
committerSage Weil <sage@newdream.net>
Mon, 4 Oct 2010 15:44:38 +0000 (08:44 -0700)
Show what it's skipping any why.

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

index c7f0477fa76cf002ce7a48dc42e1029f92b2c2b4..e1489c4e9ad1e4247d771e43f3165478ee3effc8 100644 (file)
@@ -966,10 +966,15 @@ void OSD::load_pgs()
        it++) {
     pg_t pgid;
     snapid_t snap;
-    if (!it->is_pg(pgid, snap))
+    if (!it->is_pg(pgid, snap)) {
+      dout(10) << "load_pgs skipping non-pg " << *it << dendl;
       continue;
-    if (snap != CEPH_NOSNAP)
+    }
+    if (snap != CEPH_NOSNAP) {
+      dout(10) << "load_pgs skipping snapped dir " << *it
+              << " (pg " << pgid << " snap " << snap << ")" << dendl;
       continue;
+    }
     PG *pg = _open_lock_pg(pgid);
 
     // read pg state, log
@@ -983,6 +988,7 @@ void OSD::load_pgs()
     dout(10) << "load_pgs loaded " << *pg << " " << pg->log << dendl;
     pg->unlock();
   }
+  dout(10) << "load_pgs done" << dendl;
 }