This commit is contained in:
Mr Chen
2024-05-04 16:02:44 +08:00
parent b3630699ce
commit f0cc9e2d54
2 changed files with 12 additions and 1 deletions
+4
View File
@@ -470,7 +470,11 @@ def runReplInfo():
db = client.admin
serverStatus = db.command('serverStatus')
d = getConfigData()
result = {}
if 'replSetName' in d['replication']:
result['repl_name'] = d['replication']['replSetName']
result['status'] = '无'
result['doc_name'] = '无'
if 'repl' in serverStatus: