Update index.py

This commit is contained in:
Mr Chen
2024-05-04 15:28:09 +08:00
parent 10db173b31
commit 3068e3b033
+3 -3
View File
@@ -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: