MXS-359: Stop monitor before switching master

Stopping the monitor before changing the master is the closest thing to an
instant master switch.
This commit is contained in:
Markus Mäkelä
2018-03-08 13:23:00 +02:00
parent dc48b8af4e
commit 35b7ef35b7

View File

@ -10,9 +10,11 @@ TestConnections* global_test;
void change_master(int next, int current)
{
TestConnections& test = *global_test;
test.maxscales->ssh_node_f(0, true, "maxadmin shutdown monitor MySQL-Monitor");
test.repl->connect();
test.repl->change_master(current, next);
test.repl->close_connections();
test.maxscales->ssh_node_f(0, true, "maxadmin restart monitor MySQL-Monitor");
}
struct Test