Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Feb 4, 2024
1 parent d7e70aa commit ce0c2fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/mysql/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2955,11 +2955,14 @@ def doFullSyncUser(version=''):
if mode == 'gtid':
dmp_option = ' --set-gtid-purged=off '

time.sleep(1)
writeDbSyncStatus({'code': 1, 'msg': '正在停止从库...', 'progress': 15})
if version == '8.0':
db.query("stop slave user='{}' password='{}';".format(user, apass))
else:
db.query("stop slave")

time.sleep(2)

writeDbSyncStatus({'code': 2, 'msg': '远程导出数据...', 'progress': 20})

Expand Down

0 comments on commit ce0c2fb

Please sign in to comment.