]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
brag: count the number of mds in fsmap not in mdsmap 14098/head
authorKefu Chai <kchai@redhat.com>
Mon, 6 Mar 2017 03:33:27 +0000 (11:33 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Thu, 23 Mar 2017 07:49:05 +0000 (16:49 +0900)
this change was introduced in 4e9b953

Fixes: http://tracker.ceph.com/issues/19192
Signed-off-by: Peng Zhang <zphj1987@gmail.com>
(cherry picked from commit 2d25a9c0c760664d3de33ecca0e0272c1031cd46)

src/brag/client/ceph-brag

index 8a0485934f87233b5bd97c814d785d2895c86025..d5e5a2ded208f7ca12dfe3e29fd88de6637ca72a 100755 (executable)
@@ -258,7 +258,7 @@ def get_nums():
   num_mons = len(oj['monmap']['mons'])
   num_osds = int(oj['osdmap']['osdmap']['num_in_osds'])
   try:
-    num_mdss = oj['mdsmap']['in']
+    num_mdss = oj['fsmap']['in']
   except KeyError:
     num_mdss = 0