From 3068e3b03320dd152a357edae45ac38a84fe1ad5 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 4 May 2024 15:28:09 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index b24e465cc..4d612656a 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -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: