mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user