From fdeb5e16ffa0e81d490f39f8293114ce3ede8a3c Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 5 Aug 2022 19:32:36 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 1e0adde9d..1fd835e3e 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1793,7 +1793,7 @@ def getMasterRepSlaveUserCmd(version): data = {} data['cmd'] = sql data["info"] = clist[0] - data['mode'] = getDbrunMode() + data['mode'] = recognizeDbMode() return mw.returnJson(True, 'ok!', data) @@ -1995,7 +1995,7 @@ def initSlaveStatus(version=''): if not cmd_data['status']: return mw.returnJson(False, '[主]:' + cmd_data['msg']) - local_mode = getDbrunMode() + local_mode = recognizeDbMode() if local_mode != cmd_data['data']['mode']: return mw.returnJson(False, '主【{}】从【{}】,不一致!'.format(cmd_data['data']['mode'], local_mode))