]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: include service first_committed in report
authorSage Weil <sage@inktank.com>
Sun, 14 Jul 2013 23:12:16 +0000 (16:12 -0700)
committerSage Weil <sage@inktank.com>
Sun, 14 Jul 2013 23:12:16 +0000 (16:12 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/MDSMonitor.cc
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc
src/mon/PGMonitor.cc

index 169834ab0e3117506cd1137c52f780b20145199b..1865a845af3581d95e8a0dedf36a38f50080c25a 100644 (file)
@@ -529,6 +529,8 @@ void MDSMonitor::dump_info(Formatter *f)
   f->open_object_section("mdsmap");
   mdsmap.dump(f);
   f->close_section();
+
+  f->dump_unsigned("mdsmap_first_committed", get_first_committed());
 }
 
 bool MDSMonitor::preprocess_command(MMonCommand *m)
index d04418b6391ab4349742663fc50250f94b1d845c..c12fcb56a54b847d7cc78ff54a9732fbc42b236d 100644 (file)
@@ -137,6 +137,7 @@ bool MonmapMonitor::preprocess_query(PaxosServiceMessage *m)
 
 void MonmapMonitor::dump_info(Formatter *f)
 {
+  f->dump_unsigned("monmap_first_committed", get_first_committed());
   f->open_object_section("monmap");
   mon->monmap->dump(f);
   f->open_array_section("quorum");
index 7e76ea271c40dd95f8c8ff546d5ed5d2545a4f9d..a2d3f491842d3575de1c6929970c3b2cedabf990 100644 (file)
@@ -1912,6 +1912,8 @@ void OSDMonitor::dump_info(Formatter *f)
   osdmap.dump(f);
   f->close_section();
 
+  f->dump_unsigned("osdmap_first_committed", get_first_committed());
+
   f->open_object_section("crushmap");
   osdmap.crush->dump(f);
   f->close_section();
index 365d836cebd0eab363bcf48b9372f59a61c35bea..f96fb22c03f4e14c3f03f41848b32183826e14e2 100644 (file)
@@ -1295,6 +1295,8 @@ void PGMonitor::dump_info(Formatter *f)
   f->open_object_section("pgmap");
   pg_map.dump(f);
   f->close_section();
+
+  f->dump_unsigned("pgmap_first_committed", get_first_committed());
 }
 
 bool PGMonitor::preprocess_command(MMonCommand *m)