Merge branch '2.3' into develop

This commit is contained in:
Johan Wikman
2019-03-21 09:26:06 +02:00
18 changed files with 583 additions and 152 deletions

View File

@ -816,11 +816,16 @@ void TestConnections::copy_one_mariadb_log(int i, std::string filename)
for (auto cmd : log_retrive_commands)
{
std::ofstream outfile(filename + std::to_string(j++));
auto output = repl->ssh_output(cmd, i).second;
if (outfile)
if (!output.empty())
{
outfile << repl->ssh_output(cmd, i).second;
std::ofstream outfile(filename + std::to_string(j++));
if (outfile)
{
outfile << output;
}
}
}
}