From d829d9fe10687d4f763f720f40359b8dafbb87e5 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 15 Sep 2015 04:55:22 +0300 Subject: [PATCH] dbms: clearing impossible queue entries: development [#METR-18035]. --- dbms/src/Storages/StorageReplicatedMergeTree.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dbms/src/Storages/StorageReplicatedMergeTree.cpp b/dbms/src/Storages/StorageReplicatedMergeTree.cpp index 42858eef6a5..63c03d21ea3 100644 --- a/dbms/src/Storages/StorageReplicatedMergeTree.cpp +++ b/dbms/src/Storages/StorageReplicatedMergeTree.cpp @@ -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);