From 030e05b2cfcf9a1bc57a85363002dfea42d5bd66 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 17 May 2024 13:52:19 +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 b77252960..9e1e20414 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3308,7 +3308,7 @@ def doFullSync(version=''): def isSimpleSyncCmd(sql): new_sql = sql.lower() - if new_sql.find('master_auto_position') > 0 and sql.find('channel') > 0: + if new_sql.find('master_auto_position') > 0: return False return True @@ -3423,7 +3423,7 @@ def doFullSyncUser(version=''): if isSimpleSyncCmd(cmd): dmp_option += " --master-data=1 --apply-slave-statements --include-master-host-port " else: - dmp_option += ' --master-data=1 --apply-slave-statements --include-master-host-port ' + dmp_option += ' ' dump_sql_data = getServerDir() + "/bin/mysqldump --single-transaction --default-character-set=utf8mb4 --compress -q " + dmp_option + " -h" + ip + " -P" + \ port + " -u" + user + " -p'" + apass + "' --ssl-mode=DISABLED " + sync_db + " > " + bak_file