MXS-1845 Assign server roles

Assign server roles (master, slave, relay master, slave of external master)
for a graph with possibly multiple paths to a slave server.
This commit is contained in:
Esa Korhonen
2018-06-08 11:02:53 +03:00
parent 3f82c25c62
commit 5324a1bdaa
6 changed files with 206 additions and 24 deletions

View File

@ -448,6 +448,11 @@ bool MariaDBServer::is_relay_server() const
(SERVER_RUNNING | SERVER_MASTER | SERVER_SLAVE);
}
bool MariaDBServer::is_read_only() const
{
return m_read_only;
}
const char* MariaDBServer::name() const
{
return m_server_base->server->name;