mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +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"
|
||||
);
|
||||
|
||||
# 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 = {
|
||||
map {
|
||||
$_ => {
|
||||
relay_master_log_file => $rows->{$_}->{relay_master_log_file},
|
||||
exec_master_log_pos => $rows->{$_}->{exec_master_log_pos},
|
||||
relay_master_log_file => $rows->{$_}->{relay_master_log_file} || undef,
|
||||
exec_master_log_pos => $rows->{$_}->{exec_master_log_pos} || undef,
|
||||
} } keys %$rows
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user