mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
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:
@@ -5110,7 +5110,7 @@ sub watch_server {
|
|||||||
# (when a slaveB is replicating from slaveA,
|
# (when a slaveB is replicating from slaveA,
|
||||||
# the master_uuid is it's own master, slaveA)
|
# the master_uuid is it's own master, slaveA)
|
||||||
my ($gtid_exec_ids) = ($stat->{executed_gtid_set} || '') =~ m/$gtid_uuid([0-9-:]*)/;
|
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;
|
die "No executed GTIDs" unless $gtid_exec_ids;
|
||||||
|
|
||||||
my @gtid_exec_ranges = split(/:/, $gtid_exec_ids);
|
my @gtid_exec_ranges = split(/:/, $gtid_exec_ids);
|
||||||
|
Reference in New Issue
Block a user