]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: report damaged in MDSMap::print_summary
authorJohn Spray <john.spray@redhat.com>
Wed, 18 Mar 2015 17:54:46 +0000 (17:54 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 23 Mar 2015 10:55:08 +0000 (10:55 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDSMap.cc

index bbf0767475712a08631fd0f7df9fe16f440fb8f5..bd0b2e49a656d2582518f4f880b4ba9838fde820 100644 (file)
@@ -289,6 +289,14 @@ void MDSMap::print_summary(Formatter *f, ostream *out)
       *out << ", " << failed.size() << " failed";
     }
   }
+
+  if (!damaged.empty()) {
+    if (f) {
+      f->dump_unsigned("damaged", damaged.size());
+    } else {
+      *out << ", " << damaged.size() << " damaged";
+    }
+  }
   //if (stopped.size())
   //out << ", " << stopped.size() << " stopped";
 }