Fix order of parameters in mxs1507_migrate_trx

The switchover parameters were given in the wrong order.
This commit is contained in:
Markus Mäkelä 2018-07-08 13:43:34 +03:00
parent b4174cba44
commit 5b9da16518
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -19,11 +19,12 @@ int main(int argc, char** argv)
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",
master.c_str(), slave.c_str());
slave.c_str(), master.c_str());
test.assert(rc == 0, "Switchover should work");
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)