Move server querying to MariaDBServer

The query functions still require the base monitor struct because of
mon_ping_or_connect_to_db().
This commit is contained in:
Esa Korhonen
2018-05-09 11:37:59 +03:00
parent 38647a0c69
commit b92284afc4
5 changed files with 189 additions and 189 deletions

View File

@ -339,7 +339,8 @@ void MariaDBMonitor::main_loop()
// Query all servers for their status.
for (auto iter = m_servers.begin(); iter != m_servers.end(); iter++)
{
monitor_one_server(**iter);
MariaDBServer* server = *iter;
server->update_server(m_monitor_base);
}
// Use the information to find the so far best master server.