2.1 fix restore (#151)
* refactor test backend fixing * return comatibility with 5.5 for backend restore * remove backend configuration scripts
This commit is contained in:
@ -197,13 +197,17 @@ TestConnections::TestConnections(int argc, char *argv[]):
|
||||
galera = new Galera_nodes("galera", test_dir, verbose);
|
||||
//galera->use_ipv6 = use_ipv6;
|
||||
galera->use_ipv6 = false;
|
||||
galera->take_snapshot_command = take_snapshot_command;
|
||||
galera->revert_snapshot_command = revert_snapshot_command;
|
||||
}
|
||||
else
|
||||
{
|
||||
galera = repl;
|
||||
galera = NULL;
|
||||
}
|
||||
|
||||
repl->use_ipv6 = use_ipv6;
|
||||
repl->take_snapshot_command = take_snapshot_command;
|
||||
repl->revert_snapshot_command = revert_snapshot_command;
|
||||
|
||||
|
||||
if (maxscale::required_repl_version.length())
|
||||
@ -641,8 +645,14 @@ void TestConnections::process_template(const char *template_name, const char *de
|
||||
mdn[0] = repl;
|
||||
mdn[1] = galera;
|
||||
int i, j;
|
||||
int mdn_n = 1;
|
||||
|
||||
for (j = 0; j < 2; j++)
|
||||
if (galera == NULL)
|
||||
{
|
||||
mdn_n =1;
|
||||
}
|
||||
|
||||
for (j = 0; j < mdn_n; j++)
|
||||
{
|
||||
for (i = 0; i < mdn[j]->N; i++)
|
||||
{
|
||||
@ -783,6 +793,8 @@ int TestConnections::copy_mariadb_logs(Mariadb_nodes * repl, const char* prefix)
|
||||
int exit_code;
|
||||
char str[4096];
|
||||
|
||||
if (repl == NULL) return local_result;
|
||||
|
||||
sprintf(str, "mkdir -p LOGS/%s", test_name);
|
||||
system(str);
|
||||
for (i = 0; i < repl->N; i++)
|
||||
|
Reference in New Issue
Block a user