mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
Update index.py
This commit is contained in:
@@ -1060,10 +1060,11 @@ def replInit():
|
||||
|
||||
if name == '':
|
||||
return mw.returnJson(False, '副本名不能为空!')
|
||||
d = getConfigData()
|
||||
d['replication']['replSetName'] = name
|
||||
setConfig(d)
|
||||
restart()
|
||||
|
||||
# d = getConfigData()
|
||||
# d['replication']['replSetName'] = name
|
||||
# setConfig(d)
|
||||
# restart()
|
||||
|
||||
if len(nodes) == 0:
|
||||
return mw.returnJson(False, '节点不能为空!')
|
||||
|
||||
Reference in New Issue
Block a user