Slightly better message with reason for OPTIMIZE query with "optimize_throw_if_noop"

This commit is contained in:
Alexey Milovidov 2019-02-06 18:44:27 +03:00
parent f234d7b55e
commit 2eb1876a7a

View File

@ -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
{