Fix another one test.

This commit is contained in:
Nikolai Kochetov 2021-09-21 11:01:00 +03:00
parent 12a4c74af0
commit 0308f14bea

View File

@ -305,12 +305,12 @@ CancellationCode QueryStatus::cancelQuery(bool)
if (is_killed.load()) if (is_killed.load())
return CancellationCode::CancelSent; return CancellationCode::CancelSent;
is_killed.store(true);
std::lock_guard lock(executors_mutex); std::lock_guard lock(executors_mutex);
for (auto * e : executors) for (auto * e : executors)
e->cancel(); e->cancel();
is_killed.store(true);
return CancellationCode::CancelSent; return CancellationCode::CancelSent;
} }