Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jul 3, 2024
1 parent 994bc4a commit a7aa347
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions plugins/mysql-yum/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -3218,11 +3218,14 @@ def doFullSyncUser(version=''):
return False

if not os.path.exists(bak_file):

dmp_option += ' '
if isSimpleSyncCmd(cmd):
dmp_option += " --master-data=1 --apply-slave-statements --include-master-host-port "
else:
dmp_option += ' '
if mw.inArray(mdb8,version):
# --compression-algorithms
dmp_option += " --source-data=1 --apply-replica-statements --include-source-host-port "
else:
dmp_option += " --master-data=1 --apply-slave-statements --include-master-host-port --compress "


dump_sql_data = getServerDir() + "/bin/usr/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
Expand Down
2 changes: 1 addition & 1 deletion plugins/mysql/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -3492,7 +3492,7 @@ def doFullSyncUser(version=''):

time_s = time.time()
if not os.path.exists(bak_file):
dmp_option = ' '
dmp_option += ' '
if mw.inArray(mdb8,version):
# --compression-algorithms
dmp_option += " --source-data=1 --apply-replica-statements --include-source-host-port "
Expand Down

0 comments on commit a7aa347

Please sign in to comment.