mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 21:20:49 +00:00
Fix another one test.
This commit is contained in:
parent
12a4c74af0
commit
0308f14bea
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user