mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
brag: count the number of mds in fsmap not in mdsmap
this change was introduced in 4e9b953 Fixes: http://tracker.ceph.com/issues/19192 Signed-off-by: Peng Zhang <zphj1987@gmail.com>
This commit is contained in:
parent
8786b4c8fe
commit
2d25a9c0c7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user