]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: include quorum in ceph status
authorSage Weil <sage@inktank.com>
Mon, 18 Jun 2012 21:02:29 +0000 (14:02 -0700)
committerSage Weil <sage@inktank.com>
Mon, 18 Jun 2012 21:02:29 +0000 (14:02 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc

index 9d55d1e5b05732b645c832e44cf1cbfad5cb6dd1..f50820d16afe2ae64cfc1144fa6f9e6605af862f 100644 (file)
@@ -1230,7 +1230,8 @@ void Monitor::handle_command(MMonCommand *m)
       get_health(health, NULL);
       stringstream ss;
       ss << "   health " << health << "\n";
-      ss << "   monmap " << *monmap << "\n";
+      ss << "   monmap " << *monmap << ", election epoch " << get_epoch() << ", quorum " << get_quorum()
+        << " " << get_quorum_names() << "\n";
       ss << "   osdmap " << osdmon()->osdmap << "\n";
       ss << "    pgmap " << pgmon()->pg_map << "\n";
       ss << "   mdsmap " << mdsmon()->mdsmap << "\n";