Create test database when processing config template

For an unknown reason, the mxs874_slave_recovery test times out unless the
test database is created when the config templates are being processed.
This commit is contained in:
Markus Mäkelä 2018-10-08 09:53:30 +03:00
parent a9a20bf16b
commit a0d12191da
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -661,6 +661,10 @@ void TestConnections::process_template(int m, const char* template_name, const c
mdn[j]->port[i]);
ss << str;
}
mdn[j]->connect();
execute_query(mdn[j]->nodes[0], "CREATE DATABASE IF NOT EXISTS test");
mdn[j]->close_connections();
}
sprintf(str, " -e \"s/###access_user###/%s/g\" ", maxscales->access_user[m]);