Fix GTID setup in tests

The GTID setup in tests executed code that was not supposed to be executed
when GTID is in use.
This commit is contained in:
Markus Mäkelä 2017-10-05 11:09:09 +03:00 committed by Johan Wikman
parent fa25f5aba8
commit 5521c84258

View File

@ -1058,14 +1058,14 @@ int TestConnections::start_binlog()
fflush(stdout);
tprintf("Maxscale binlog master pos : %s\n", log_pos);
fflush(stdout);
}
tprintf("Setup all backend nodes except first one to be slaves of binlog Maxscale node\n");
fflush(stdout);
for (i = 2; i < repl->N; i++)
{
try_query(repl->nodes[i], "stop slave;");
repl->set_slave(repl->nodes[i], maxscale_IP, binlog_port, log_file, log_pos);
tprintf("Setup all backend nodes except first one to be slaves of binlog Maxscale node\n");
fflush(stdout);
for (i = 2; i < repl->N; i++)
{
try_query(repl->nodes[i], "stop slave;");
repl->set_slave(repl->nodes[i], maxscale_IP, binlog_port, log_file, log_pos);
}
}
repl->close_connections();