mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 18:50:49 +00:00
Finalize mutations more frequently
This commit is contained in:
parent
6fb48c5e9a
commit
5a5792259c
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user