mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 21:54:48 +00:00
MasterSlave check for errors on get_slave_status calls
This commit is contained in:
@@ -3052,8 +3052,11 @@ sub wait_for_master {
|
||||
my $result;
|
||||
my $waited;
|
||||
if ( $master_status ) {
|
||||
my $slave_status = $self->get_slave_status($slave_dbh);
|
||||
if (!$slave_status) {
|
||||
my $slave_status;
|
||||
eval {
|
||||
$slave_status = $self->get_slave_status($slave_dbh);
|
||||
};
|
||||
if ($EVAL_ERROR) {
|
||||
return {
|
||||
result => undef,
|
||||
waited => 0,
|
||||
|
Reference in New Issue
Block a user