mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Slightly better message with reason for OPTIMIZE query with "optimize_throw_if_noop"
This commit is contained in:
parent
f234d7b55e
commit
2eb1876a7a
@ -403,6 +403,8 @@ bool StorageMergeTree::merge(
|
||||
UInt64 max_source_parts_size = merger_mutator.getMaxSourcePartsSize();
|
||||
if (max_source_parts_size > 0)
|
||||
selected = merger_mutator.selectPartsToMerge(future_part, aggressive, max_source_parts_size, can_merge, out_disable_reason);
|
||||
else if (out_disable_reason)
|
||||
*out_disable_reason = "Current value of max_source_parts_size is zero";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user