Update index.py

This commit is contained in:
Mr Chen
2024-05-17 13:52:19 +08:00
parent 24750cfdb2
commit 030e05b2cf
+2 -2
View File
@@ -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