fix start_maxscale for valgrind case

This commit is contained in:
Timofey Turenko
2019-03-08 11:47:11 +02:00
parent 267ec9cccc
commit c83868936a
2 changed files with 14 additions and 6 deletions

View File

@ -247,7 +247,11 @@ int Maxscales::restart_maxscale(int m)
if (use_valgrind)
{
res = stop_maxscale(m);
res += start_maxscale(m);
res = ssh_node_f(m, false,
"sudo --user=maxscale valgrind --leak-check=full --show-leak-kinds=all "
"--log-file=/%s/valgrind%02d.log --trace-children=yes "
"--track-origins=yes /usr/bin/maxscale", maxscale_log_dir[m], valgring_log_num);
valgring_log_num++;
}
else
{