mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fixed is_cancelled predicate inside MergeTask (#30996)
This commit is contained in:
parent
1f217aeb5a
commit
59c8ed9b0c
@ -255,9 +255,12 @@ bool MergeTask::ExecuteAndFinalizeHorizontalPart::prepare()
|
||||
|
||||
ctx->is_cancelled = [merges_blocker = global_ctx->merges_blocker,
|
||||
ttl_merges_blocker = global_ctx->ttl_merges_blocker,
|
||||
need_remove = ctx->need_remove_expired_values]() -> bool
|
||||
need_remove = ctx->need_remove_expired_values,
|
||||
merge_list_element = global_ctx->merge_list_element_ptr]() -> bool
|
||||
{
|
||||
return merges_blocker->isCancelled() || (need_remove && ttl_merges_blocker->isCancelled());
|
||||
return merges_blocker->isCancelled()
|
||||
|| (need_remove && ttl_merges_blocker->isCancelled())
|
||||
|| merge_list_element->is_cancelled.load(std::memory_order_relaxed);
|
||||
};
|
||||
|
||||
/// This is the end of preparation. Execution will be per block.
|
||||
|
Loading…
Reference in New Issue
Block a user