From: Sage Weil Date: Fri, 16 Oct 2009 17:12:37 +0000 (-0700) Subject: mon: show election quorum info on 'mon stat' X-Git-Tag: v0.17~37 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7da385d677f7358b7c1fe5888f4a24825d926e88;p=ceph.git mon: show election quorum info on 'mon stat' --- diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index aeb8e3779c3f6..7f4fb20d74ebe 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -99,6 +99,7 @@ bool MonmapMonitor::preprocess_command(MMonCommand *m) if (m->cmd.size() > 1) { if (m->cmd[1] == "stat") { mon->monmap->print_summary(ss); + ss << ", election epoch " << mon->get_epoch() << ", quorum " << mon->get_quorum(); r = 0; } else if (m->cmd.size() == 2 && m->cmd[1] == "getmap") {