Skip to content

Commit a21e4b3

Browse files
authored
Update ReplicatedMergeTreeQueue.cpp
1 parent 67044d6 commit a21e4b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ void ReplicatedMergeTreeQueue::removeCoveredPartsFromMutations(const String & pa
268268

269269
bool some_mutations_are_probably_done = false;
270270

271-
for (auto it = in_partition->second.begin(); it != in_partition->second.end(); ++it)
271+
for (auto & it : in_partition->second)
272272
{
273-
MutationStatus & status = *it->second;
273+
MutationStatus & status = *it.second;
274274

275275
if (remove_part && remove_covered_parts)
276276
status.parts_to_do.removePartAndCoveredParts(part_name);

0 commit comments

Comments
 (0)