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:
@@ -1016,9 +1016,9 @@ def replInit():
|
||||
|
||||
if name == '':
|
||||
return mw.returnJson(False, '副本名不能为空!')
|
||||
|
||||
c['replication']['replSetName'] = name
|
||||
setReplConfigData(c)
|
||||
d = getConfigData()
|
||||
d['replication']['replSetName'] = name
|
||||
setReplConfigData(d)
|
||||
restart()
|
||||
|
||||
if len(nodes) == 0:
|
||||
|
||||
Reference in New Issue
Block a user