Merge pull request #121 from sodabrew/patch-1

Handle GTID ranges where the left-side integer is larger than 9
This commit is contained in:
Carlos Salguero
2016-08-02 11:57:20 -03:00
committed by GitHub

View File

@@ -5110,7 +5110,7 @@ sub watch_server {
# (when a slaveB is replicating from slaveA,
# the master_uuid is it's own master, slaveA)
my ($gtid_exec_ids) = ($stat->{executed_gtid_set} || '') =~ m/$gtid_uuid([0-9-:]*)/;
$gtid_exec_ids =~ s/:[0-9]-/:/g;
$gtid_exec_ids =~ s/:[0-9]+-/:/g;
die "No executed GTIDs" unless $gtid_exec_ids;
my @gtid_exec_ranges = split(/:/, $gtid_exec_ids);