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:
Sveta Smirnova
2024-02-10 11:15:11 +03:00
parent 19baa34872
commit f136116826
11 changed files with 74 additions and 33 deletions

View File

@@ -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({})};