From adc7f2fe989f2f9e625dce02f4ea1d70b8db9b63 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 4 May 2024 15:24:27 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 1ebd543f9..6812e88f9 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -1017,6 +1017,9 @@ def replInit(): if name == '': return mw.returnJson(False, '副本名不能为空!') + c['security']['replSetName'] = name + setReplConfigData(c) + if len(nodes) == 0: return mw.returnJson(False, '节点不能为空!')