]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrMap: prefix summary with epoch; add comma
authorSage Weil <sage@redhat.com>
Tue, 16 May 2017 22:40:08 +0000 (18:40 -0400)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 16:58:14 +0000 (12:58 -0400)
This matches the others now:

    cluster 0d553373-5de6-4d90-bc60-cfd6f6554631
     health HEALTH_OK
     monmap e2: 1 mons, quorum a
      fsmap e2: 0/0/1 up
        mgr e3: active: x(starting), standbys: y
     osdmap e5: 1 osds: 0 up, 0 in
      pgmap v6: 24 pgs, 3 pools, 0 bytes data, 0 objects
            0 kB used, 0 kB / 0 kB avail
            100.000% pgs inactive
                  24 creating

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MgrMap.h

index 9d30c953c720614edff0de88d54904a1ca0c8389..b092efd71fe4dde49f6be59ca00dd2931dcb6d05 100644 (file)
@@ -125,6 +125,7 @@ public:
     if (f) {
       dump(f);
     } else {
+      *ss << "e" << get_epoch() << ": ";
       if (get_active_gid() != 0) {
        *ss << get_active_name();
         if (!available) {
@@ -133,12 +134,11 @@ public:
         } else {
           *ss << "(active)";
         }
-        *ss << " ";
       } else {
-       *ss << "no daemons active ";
+       *ss << "no daemons active";
       }
       if (standbys.size()) {
-       *ss << "standbys: ";
+       *ss << "standbys: ";
        bool first = true;
        for (const auto &i : standbys) {
          if (!first) {