From: John Spray Date: Tue, 27 May 2014 12:22:51 +0000 (+0100) Subject: mon: hide mdsmap in 'ceph status' if not enabled X-Git-Tag: v0.84~164^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=586746433603cf1790ee9ab788e2022b2eed3297;p=ceph.git mon: hide mdsmap in 'ceph status' if not enabled Previously we checked if the MDS map had ever been updated (epoch > 1), now we have an explicit flag for whether it's enabled. Signed-off-by: John Spray --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 6e6ea17cfc4..7767542218a 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2104,7 +2104,7 @@ void Monitor::get_cluster_status(stringstream &ss, Formatter *f) ss << " health " << health << "\n"; ss << " monmap " << *monmap << ", election epoch " << get_epoch() << ", quorum " << get_quorum() << " " << get_quorum_names() << "\n"; - if (mdsmon()->mdsmap.get_epoch() > 1) + if (mdsmon()->mdsmap.get_enabled()) ss << " mdsmap " << mdsmon()->mdsmap << "\n"; osdmon()->osdmap.print_summary(NULL, ss); pgmon()->pg_map.print_summary(NULL, &ss);