Finalize mutations more frequently

This commit is contained in:
alesapin 2020-02-28 11:55:17 +03:00
parent 6fb48c5e9a
commit 5a5792259c

View File

@ -1345,7 +1345,11 @@ bool ReplicatedMergeTreeQueue::tryFinalizeMutations(zkutil::ZooKeeperPtr zookeep
}
}
return candidates.size() != finished.size();
/// Mutations may finish in non sequential order because we may fetch
/// already mutated parts from other replicas. So, because we updated
/// mutation pointer we have to recheck all previous mutations, they may be
/// also finished.
return !finished.empty();
}