Fix Galera monitor problem with leaving wrong status for significant periods; change warning message from logging as warning instead of notice.

This commit is contained in:
counterpoint
2015-11-20 10:15:13 +00:00
parent b7ce68aa1c
commit ece53a8ac5
4 changed files with 28 additions and 11 deletions

View File

@ -686,6 +686,18 @@ server_clear_status(SERVER *server, int bit)
server->status &= ~bit;
}
/**
* Transfer status bitstring from one server to another
*
* @param dest_server The server to be updated
* @param source_server The server to provide the new bit string
*/
void
server_transfer_status(SERVER *dest_server, SERVER *source_server)
{
dest_server->status = source_server->status;
}
/**
* Add a user name and password to use for monitoring the
* state of the server.