mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 08:51:44 +00:00
Tweak, fix, and add tests so every tool passes.
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user