From 41c7b0fb70d1d9bb8c040536372f18fe98a79ec2 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 6 May 2024 02:13:59 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 50fe54833..3db6acbae 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -1135,8 +1135,8 @@ def replClose(): # del repl_info['set'] # print(repl_info) - rsStatus = db.command('replSetGetConfig',config,force=True) - + rstatus = db.command('replSetReconfig',config,force=True) + print(rstatus) # db.command('replSetStepDown',replSetStepDown=0,secondaryCatchUpPeriodSecs=0,force=True) except Exception as e: # info = str(e).split(',')