Merge branch '2.3' into 2.4
This commit is contained in:
@ -2105,18 +2105,12 @@ void MonitorWorkerSimple::tick()
|
||||
* the server state bits. This would allow clearing the state by
|
||||
* zeroing it out.
|
||||
*/
|
||||
const uint64_t bits_to_clear = ~SERVER_WAS_MASTER;
|
||||
|
||||
pMs->clear_pending_status(bits_to_clear);
|
||||
pMs->clear_pending_status(MonitorServer::SERVER_DOWN_CLEAR_BITS);
|
||||
|
||||
if (mysql_errno(pMs->con) == ER_ACCESS_DENIED_ERROR)
|
||||
{
|
||||
pMs->set_pending_status(SERVER_AUTH_ERROR);
|
||||
}
|
||||
else
|
||||
{
|
||||
pMs->clear_pending_status(SERVER_AUTH_ERROR);
|
||||
}
|
||||
|
||||
if (pMs->status_changed() && pMs->should_print_fail_status())
|
||||
{
|
||||
|
||||
@ -2231,9 +2231,9 @@ void MariaDBServer::update_server(bool time_to_update_disk_space,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The current server is not running. Clear all but the stale master bit as it is used to detect
|
||||
* masters that went down but came up. */
|
||||
server->clear_status(~SERVER_WAS_MASTER);
|
||||
/* The current server is not running. Clear some of the bits. User-set bits and some long-term bits
|
||||
* can stay. */
|
||||
server->clear_status(MonitorServer::SERVER_DOWN_CLEAR_BITS);
|
||||
auto conn_errno = mysql_errno(conn);
|
||||
if (conn_errno == ER_ACCESS_DENIED_ERROR || conn_errno == ER_ACCESS_DENIED_NO_PASSWORD_ERROR)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user