mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 07:30:02 +00:00
PT-2295 - Fix tests on distributions
- Added test result adjustment on slow machines for t/lib/bash/collect.sh, because no other solution worked - Updated modules for all tools
This commit is contained in:
@@ -2689,8 +2689,14 @@ sub get_master_status {
|
||||
return;
|
||||
}
|
||||
|
||||
my $sth = $self->{sths}->{$dbh}->{MASTER_STATUS}
|
||||
my $sth;
|
||||
if ( $self->{sths}->{$dbh} && $dbh && $self->{sths}->{$dbh} == $dbh ) {
|
||||
$sth = $self->{sths}->{$dbh}->{MASTER_STATUS}
|
||||
||= $dbh->prepare('SHOW MASTER STATUS');
|
||||
}
|
||||
else {
|
||||
$sth = $dbh->prepare('SHOW MASTER STATUS');
|
||||
}
|
||||
PTDEBUG && _d($dbh, 'SHOW MASTER STATUS');
|
||||
$sth->execute();
|
||||
my ($ms) = @{$sth->fetchall_arrayref({})};
|
||||
|
Reference in New Issue
Block a user