Add test case for ignore_external_masters + failover
The test checks that failover works even when the master of the monitored cluster is a slave to an external masters. The test also verifies that the servers do not get unexpected status labels.
This commit is contained in:
@ -430,6 +430,18 @@ public:
|
||||
/** Whether to require GTID based replication, defaults to false */
|
||||
static void require_gtid(bool value);
|
||||
|
||||
/**
|
||||
* Configure a server as a slave of another server
|
||||
*
|
||||
* The servers are configured with GTID replicating using the configured
|
||||
* GTID position, either slave_pos or current_pos.
|
||||
*
|
||||
* @param slave The node index to assign as slave
|
||||
* @param master The node index of the master
|
||||
* @param type Replication type
|
||||
*/
|
||||
void replicate_from(int slave, int master, const char* type = "current_pos");
|
||||
|
||||
private:
|
||||
|
||||
bool check_master_node(MYSQL *conn);
|
||||
|
Reference in New Issue
Block a user