MXS-1703 Reorganize cluster manipulation methods

Just moving code around.
This commit is contained in:
Esa Korhonen
2018-04-11 14:32:22 +03:00
parent 4ba79e8d49
commit ca9682f042
4 changed files with 380 additions and 366 deletions

View File

@ -1531,6 +1531,14 @@ bool MariaDBMonitor::mon_process_failover(bool* cluster_modified_out)
return rval;
}
/**
* Check if server is using gtid replication.
*
* @param mon_server Server to check
* @param error_out Error output
* @return True if using gtid-replication. False if not, or if server is not a slave or otherwise does
* not have a gtid_IO_Pos.
*/
bool MariaDBMonitor::uses_gtid(MXS_MONITORED_SERVER* mon_server, json_t** error_out)
{
bool rval = false;