Fix order of parameters in mxs1507_migrate_trx
The switchover parameters were given in the wrong order.
This commit is contained in:
@ -19,11 +19,12 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
auto switchover = [&]()
|
auto switchover = [&]()
|
||||||
{
|
{
|
||||||
|
test.maxscales->wait_for_monitor();
|
||||||
int rc = test.maxscales->ssh_node_f(0, true, "maxctrl call command mariadbmon switchover MySQL-Monitor %s %s",
|
int rc = test.maxscales->ssh_node_f(0, true, "maxctrl call command mariadbmon switchover MySQL-Monitor %s %s",
|
||||||
master.c_str(), slave.c_str());
|
slave.c_str(), master.c_str());
|
||||||
test.assert(rc == 0, "Switchover should work");
|
test.assert(rc == 0, "Switchover should work");
|
||||||
master.swap(slave);
|
master.swap(slave);
|
||||||
test.maxscales->wait_for_monitor(); // Seems that the system needs a few seconds to stabilize
|
test.maxscales->wait_for_monitor();
|
||||||
};
|
};
|
||||||
|
|
||||||
auto query = [&](string q)
|
auto query = [&](string q)
|
||||||
|
Reference in New Issue
Block a user