dbms: clearing impossible queue entries: development [#METR-18035].

This commit is contained in:
Alexey Milovidov 2015-09-15 04:55:22 +03:00
parent 23a11f19c7
commit d829d9fe10

View File

@ -1756,6 +1756,10 @@ void StorageReplicatedMergeTree::searchForMissingPart(const String & part_name)
return;
}
/// TODO Временное решение, так как логика ниже не верна для остальных случаев.
if (part_length_in_blocks != 1)
return;
size_t num_found_blocks = 0;
for (auto found_block : found_blocks)
num_found_blocks += (found_block == 1);