From 45edc8c86145d306c76138cd24802ce6d9d53f79 Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 30 Jun 2021 22:11:00 +0300 Subject: [PATCH] Fix tidy --- src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp b/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp index 1b0e4ff226a..f656dc7b7e8 100644 --- a/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp +++ b/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp @@ -68,11 +68,11 @@ bool ReplicatedMergeTreeQueue::checkPartInQueueAndGetSourceParts(const String & { std::lock_guard lock(state_mutex); - for (auto it = queue.begin(); it != queue.end(); ++it) + for (const auto & entry : queue) { - if ((*it)->new_part_name == part_name) + if (entry->new_part_name == part_name) { - source_parts.insert(source_parts.end(), (*it)->source_parts.begin(), (*it)->source_parts.end()); + source_parts.insert(source_parts.end(), entry->source_parts.begin(), entry->source_parts.end()); return true; } }