mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -2326,7 +2326,8 @@ def trySlaveSyncBugfix(version=''):
|
||||
mdb.setSocket('')
|
||||
|
||||
# var_gtid = mdb.query('show VARIABLES like "%gtid_purged%"')
|
||||
var_gtid = mdb.query('select @@global.gtid_current_pos')
|
||||
var_gtid = mdb.query('select @@global.gtid_current_pos as Value')
|
||||
#print(var_gtid)
|
||||
if len(var_gtid) > 0:
|
||||
gtid_purged += var_gtid[0]['Value'] + ','
|
||||
|
||||
|
||||
Reference in New Issue
Block a user