MXS-2384 Update servers concurrently in MariaDB-Monitor

All servers are now updated in their own threads simultaneously. This
should reduce the possibility of having significantly different gtid:s
shown for different servers.
This commit is contained in:
Esa Korhonen
2019-03-13 19:10:11 +02:00
parent 3ac1b40b63
commit 09ae5d741c
4 changed files with 97 additions and 77 deletions

View File

@ -116,7 +116,6 @@ public:
bool log_slave_updates = false; /* Does the slave write replicated events to binlog? */
};
/* Monitored server base class/struct. MariaDBServer does not own the struct, it is not freed
* (or connection closed) when a MariaDBServer is destroyed. */
mxs::MonitorServer* m_server_base = NULL;
@ -168,6 +167,9 @@ public:
*/
std::string diagnostics() const;
void update_server(bool time_to_update_disk_space,
const mxs::MonitorServer::ConnectionSettings& conn_settings);
/**
* Query this server.
*/