Update ReplicatedMergeTreeQueue.cpp

This commit is contained in:
tavplubix 2021-05-26 15:10:38 +03:00 committed by GitHub
parent 67044d69f3
commit a21e4b333e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,9 +268,9 @@ void ReplicatedMergeTreeQueue::removeCoveredPartsFromMutations(const String & pa
bool some_mutations_are_probably_done = false;
for (auto it = in_partition->second.begin(); it != in_partition->second.end(); ++it)
for (auto & it : in_partition->second)
{
MutationStatus & status = *it->second;
MutationStatus & status = *it.second;
if (remove_part && remove_covered_parts)
status.parts_to_do.removePartAndCoveredParts(part_name);