Update index.py

This commit is contained in:
Mr Chen
2024-05-06 17:02:37 +08:00
parent 270fb15ebf
commit 43cfbc90a2
+5 -4
View File
@@ -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, '节点不能为空!')