MasterSlave check for errors on get_slave_status calls

This commit is contained in:
Carlos Salguero
2017-11-09 11:40:58 -03:00
parent dd37971cc4
commit af65e82ab7
11 changed files with 90 additions and 47 deletions

View File

@@ -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,