|
|
@ -1070,13 +1070,18 @@ def replClose(): |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# client = mongdbClient() |
|
|
|
client = mongdbClient() |
|
|
|
# try: |
|
|
|
try: |
|
|
|
# # {force:True} |
|
|
|
# {force:True} |
|
|
|
# rsStatus = client.admin.command('replSetReconfig',config) |
|
|
|
# repl_info = client.admin.command('replSetGetStatus') |
|
|
|
# except Exception as e: |
|
|
|
# repl_info['members'] = [] |
|
|
|
# info = str(e).split(',') |
|
|
|
# del repl_info['set'] |
|
|
|
# return mw.returnJson(False, str(info[0])) |
|
|
|
|
|
|
|
|
|
|
|
# print(repl_info) |
|
|
|
|
|
|
|
rsStatus = client.admin.command('replSetReconfig',config) |
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
info = str(e).split(',') |
|
|
|
|
|
|
|
return mw.returnJson(False, str(info[0])) |
|
|
|
|
|
|
|
|
|
|
|
d = getConfigData() |
|
|
|
d = getConfigData() |
|
|
|
if 'replSetName' in d['replication']: |
|
|
|
if 'replSetName' in d['replication']: |
|
|
|