Tweak, fix, and add tests so every tool passes.

This commit is contained in:
Daniel Nichter
2011-08-02 16:38:03 -06:00
parent 1e6c4daf23
commit 747d63a6d3
13 changed files with 227 additions and 134 deletions

View File

@@ -3848,7 +3848,9 @@ sub get_master_status {
MKDEBUG && _d($dbh, 'SHOW MASTER STATUS');
$sth->execute();
my ($ms) = @{$sth->fetchall_arrayref({})};
MKDEBUG && _d(@$ms);
MKDEBUG && _d(
$ms ? map { "$_=" . (defined $ms->{$_} ? $ms->{$_} : '') } keys %$ms
: '');
if ( !$ms || scalar keys %$ms < 2 ) {
MKDEBUG && _d('Server on dbh', $dbh, 'does not seem to be a master');