From: Sage Weil Date: Sun, 14 Jul 2013 23:12:16 +0000 (-0700) Subject: mon: include service first_committed in report X-Git-Tag: v0.67-rc1~74^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=89ced1c26fbd60f048ffe50ddba41ee4207e11be;p=ceph.git mon: include service first_committed in report Signed-off-by: Sage Weil --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 169834ab0e31..1865a845af35 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -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) diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index d04418b6391a..c12fcb56a54b 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -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"); diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 7e76ea271c40..a2d3f491842d 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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(); diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 365d836cebd0..f96fb22c03f4 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -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)