Server status changes now happen under a lock
MXS-873 To prevent monitors and MaxAdmin from interfering with each other, changes to the server status flags now happen under a lock. To avoid interfering with monitor logic, the monitors now acquire locks to all of their servers at the start of the monitor loop and release them before sleeping.
This commit is contained in:
@ -235,6 +235,8 @@ int mon_parse_event_string(bool* events, size_t count, char* string);
|
||||
connect_result_t mon_connect_to_db(MONITOR* mon, MONITOR_SERVERS *database);
|
||||
void mon_log_connect_error(MONITOR_SERVERS* database, connect_result_t rval);
|
||||
void mon_log_state_change(MONITOR_SERVERS *ptr);
|
||||
void lock_monitor_servers(MONITOR *monitor);
|
||||
void release_monitor_servers(MONITOR *monitor);
|
||||
|
||||
/**
|
||||
* @brief Hangup connections to failed servers
|
||||
|
Reference in New Issue
Block a user