mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 15:31:55 +00:00
MasterSlave check for errors on get_slave_status calls
This commit is contained in:
@@ -2641,8 +2641,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