MXS-2652 Do not clear maintenance flag when a server goes down
The set of flags to clear should be well-defined.
This commit is contained in:
@ -2839,18 +2839,12 @@ void MonitorInstanceSimple::tick()
|
||||
* the server state bits. This would allow clearing the state by
|
||||
* zeroing it out.
|
||||
*/
|
||||
const uint64_t bits_to_clear = ~SERVER_WAS_MASTER;
|
||||
|
||||
monitor_clear_pending_status(pMs, bits_to_clear);
|
||||
monitor_clear_pending_status(pMs, SERVER_DOWN_CLEAR_BITS);
|
||||
|
||||
if (mysql_errno(pMs->con) == ER_ACCESS_DENIED_ERROR)
|
||||
{
|
||||
monitor_set_pending_status(pMs, SERVER_AUTH_ERROR);
|
||||
}
|
||||
else
|
||||
{
|
||||
monitor_clear_pending_status(pMs, SERVER_AUTH_ERROR);
|
||||
}
|
||||
|
||||
if (mon_status_changed(pMs) && mon_print_fail_status(pMs))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user