]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: show election quorum info on 'mon stat'
authorSage Weil <sage@newdream.net>
Fri, 16 Oct 2009 17:12:37 +0000 (10:12 -0700)
committerSage Weil <sage@newdream.net>
Fri, 16 Oct 2009 17:46:34 +0000 (10:46 -0700)
src/mon/MonmapMonitor.cc

index aeb8e3779c3f66a25c312a4f9843d17172afb07d..7f4fb20d74ebe7204e6c7b098cf1cb058787ef21 100644 (file)
@@ -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") {