From eb2bb595deb06c2882d14f9d2db4e1dfee5a1331 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 22 Dec 2023 03:10:31 +0800 Subject: [PATCH] Update index.py --- plugins/mariadb/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 0fbd19398..9324316b4 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -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'] + ','