Fixed bug found by PVS-Studio [#CLICKHOUSE-3]

This commit is contained in:
Alexey Milovidov 2018-06-04 18:03:21 +03:00
parent 531e9d14be
commit fa3a01f942

View File

@ -150,7 +150,7 @@ void ReplicatedMergeTreePartCheckThread::searchForMissingPart(const String & par
/// No one has such a part and the merge is impossible.
String not_found_msg;
if (found_part_with_the_same_min_block)
if (found_part_with_the_same_max_block)
not_found_msg = "a smaller part with the same max block.";
else if (found_part_with_the_same_min_block)
not_found_msg = "a smaller part with the same min block.";