MXS-3418 Do not attempt to stop MaxScale if running locally

This commit is contained in:
Johan Wikman
2021-03-02 17:07:04 +02:00
parent 19066ae383
commit 70fa260242

View File

@ -561,15 +561,18 @@ TestConnections::~TestConnections()
repl->create_users();
}
// stop all Maxscales to detect crashes on exit
for (int i = 0; i < maxscales->N; i++)
if (!m_local_maxscale)
{
stop_maxscale(i);
}
// stop all Maxscales to detect crashes on exit
for (int i = 0; i < maxscales->N; i++)
{
stop_maxscale(i);
}
if (maxscales->use_valgrind)
{
sleep(15); // sleep to let logs be written do disks
if (maxscales->use_valgrind)
{
sleep(15); // sleep to let logs be written do disks
}
}
copy_all_logs();