diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 9fbd75de6..b24e465cc 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -1017,7 +1017,7 @@ def replInit(): if name == '': return mw.returnJson(False, '副本名不能为空!') - c['security']['replSetName'] = name + c['replication']['replSetName'] = name setReplConfigData(c) restart()