From 89ced1c26fbd60f048ffe50ddba41ee4207e11be Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 14 Jul 2013 16:12:16 -0700 Subject: [PATCH] mon: include service first_committed in report Signed-off-by: Sage Weil --- src/mon/MDSMonitor.cc | 2 ++ src/mon/MonmapMonitor.cc | 1 + src/mon/OSDMonitor.cc | 2 ++ src/mon/PGMonitor.cc | 2 ++ 4 files changed, 7 insertions(+) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 169834ab0e311..1865a845af358 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 d04418b6391ab..c12fcb56a54b8 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 7e76ea271c40d..a2d3f491842d3 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 365d836cebd0e..f96fb22c03f4e 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) -- 2.39.5