From 00048fe33fb76adbc19ffaef960fe52a73b62849 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Thu, 5 Dec 2013 17:39:50 +0000 Subject: [PATCH] mon: Have 'ceph report' print last committed versions Only for those services that weren't doing it. Backport: dumpling Backport: emperor Signed-off-by: Joao Eduardo Luis --- src/mon/MDSMonitor.cc | 1 + src/mon/MonmapMonitor.cc | 1 + src/mon/OSDMonitor.cc | 1 + src/mon/PGMonitor.cc | 1 + 4 files changed, 4 insertions(+) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index b49bf097bd41..fe4ba693de99 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -550,6 +550,7 @@ void MDSMonitor::dump_info(Formatter *f) f->close_section(); f->dump_unsigned("mdsmap_first_committed", get_first_committed()); + f->dump_unsigned("mdsmap_last_committed", get_last_committed()); } bool MDSMonitor::preprocess_command(MMonCommand *m) diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index ca855592445f..4011e2bf3baa 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -138,6 +138,7 @@ bool MonmapMonitor::preprocess_query(PaxosServiceMessage *m) void MonmapMonitor::dump_info(Formatter *f) { f->dump_unsigned("monmap_first_committed", get_first_committed()); + f->dump_unsigned("monmap_last_committed", get_last_committed()); f->open_object_section("monmap"); mon->monmap->dump(f); f->close_section(); diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 058a5cfeef3a..9b1631828a8a 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -1963,6 +1963,7 @@ void OSDMonitor::dump_info(Formatter *f) f->close_section(); f->dump_unsigned("osdmap_first_committed", get_first_committed()); + f->dump_unsigned("osdmap_last_committed", get_last_committed()); f->open_object_section("crushmap"); osdmap.crush->dump(f); diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 0ba7970a0c50..4310dd05a2b7 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1339,6 +1339,7 @@ void PGMonitor::dump_info(Formatter *f) f->close_section(); f->dump_unsigned("pgmap_first_committed", get_first_committed()); + f->dump_unsigned("pgmap_last_committed", get_last_committed()); } bool PGMonitor::preprocess_command(MMonCommand *m) -- 2.47.3