DBZ-1184 Support long purged GTID set
This commit is contained in:
parent
2f187fd1cb
commit
41734d322e
@ -205,7 +205,7 @@ public String knownGtidSet() {
|
|||||||
public GtidSet purgedGtidSet() {
|
public GtidSet purgedGtidSet() {
|
||||||
AtomicReference<String> gtidSetStr = new AtomicReference<String>();
|
AtomicReference<String> gtidSetStr = new AtomicReference<String>();
|
||||||
try {
|
try {
|
||||||
jdbc.query("SHOW GLOBAL VARIABLES LIKE 'gtid_purged'", rs -> {
|
jdbc.query("SELECT @@global.gtid_purged", rs -> {
|
||||||
if (rs.next() && rs.getMetaData().getColumnCount() > 1) {
|
if (rs.next() && rs.getMetaData().getColumnCount() > 1) {
|
||||||
gtidSetStr.set(rs.getString(2));// GTID set, may be null, blank, or contain a GTID set
|
gtidSetStr.set(rs.getString(2));// GTID set, may be null, blank, or contain a GTID set
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user