mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-21 01:54:44 +00:00
Fix debug statement.
This commit is contained in:
@@ -364,7 +364,9 @@ sub get_master_status {
|
|||||||
MKDEBUG && _d($dbh, 'SHOW MASTER STATUS');
|
MKDEBUG && _d($dbh, 'SHOW MASTER STATUS');
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
my ($ms) = @{$sth->fetchall_arrayref({})};
|
my ($ms) = @{$sth->fetchall_arrayref({})};
|
||||||
MKDEBUG && _d(@$ms);
|
MKDEBUG && _d(
|
||||||
|
$ms ? map { "$_=" . (defined $ms->{$_} ? $ms->{$_} : '') } keys %$ms
|
||||||
|
: '');
|
||||||
|
|
||||||
if ( !$ms || scalar keys %$ms < 2 ) {
|
if ( !$ms || scalar keys %$ms < 2 ) {
|
||||||
MKDEBUG && _d('Server on dbh', $dbh, 'does not seem to be a master');
|
MKDEBUG && _d('Server on dbh', $dbh, 'does not seem to be a master');
|
||||||
|
Reference in New Issue
Block a user