From 43cfbc90a27338e4a66be1ef6802800c5190b5ff Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 6 May 2024 17:02:37 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 01902da4e..29d8131d4 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -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, '节点不能为空!')