MXS-1712 Cleanup reset-replication

Now logs messages explaining what has been done. Scheduled events are
disabled/enabled during the operation. Redirection of slaves is done at
the end similar to failover/switchover.
This commit is contained in:
Esa Korhonen
2018-09-18 11:05:00 +03:00
parent 71ffef5708
commit a3adcea524
3 changed files with 81 additions and 27 deletions

View File

@ -1311,6 +1311,11 @@ bool MariaDBServer::reset_all_slave_conns(json_t** error_out)
break;
}
}
if (!error && !m_slave_status.empty())
{
MXS_NOTICE("Removed %lu slave connection(s) from '%s'.", m_slave_status.size(), name());
}
return !error;
}