Master can be a slave

This is possible if read_only is turned ON on the master and there is
no alternative master to swap to.
This commit is contained in:
Esa Korhonen
2018-08-20 15:24:21 +03:00
parent 1c508cd413
commit 44a57dbefd
2 changed files with 25 additions and 24 deletions

View File

@ -1367,7 +1367,7 @@ bool MariaDBMonitor::cluster_supports_failover(string* reasons_out)
rval = false;
}
if (server->is_slave())
if (server->is_slave() && !server->m_slave_status.empty())
{
if (server->m_slave_status.size() > 1)
{