mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
Fix pt-hb/pxc.t so it's not thrown off by previous tests.
This commit is contained in:
@@ -115,11 +115,13 @@ is(
|
|||||||
"Sanity check: All nodes are in the heartbeat table"
|
"Sanity check: All nodes are in the heartbeat table"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# These values may be 0 or '' depending on whether or not a previous test
|
||||||
|
# turned 12345 into a slave or not. For this purpose 0 == undef == ''.
|
||||||
my $only_slave_data = {
|
my $only_slave_data = {
|
||||||
map {
|
map {
|
||||||
$_ => {
|
$_ => {
|
||||||
relay_master_log_file => $rows->{$_}->{relay_master_log_file},
|
relay_master_log_file => $rows->{$_}->{relay_master_log_file} || undef,
|
||||||
exec_master_log_pos => $rows->{$_}->{exec_master_log_pos},
|
exec_master_log_pos => $rows->{$_}->{exec_master_log_pos} || undef,
|
||||||
} } keys %$rows
|
} } keys %$rows
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user