Fix pt-hb/pxc.t so it's not thrown off by previous tests.

This commit is contained in:
Daniel Nichter
2013-03-08 13:01:19 -08:00
parent e5e6b1d9b9
commit 3f0473052c

View File

@@ -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
};