Update StorageReplicatedMergeTree.cpp

This commit is contained in:
tavplubix 2021-05-24 14:23:23 +03:00 committed by GitHub
parent 81dd60fdc2
commit e0f214d0e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4902,8 +4902,9 @@ bool StorageReplicatedMergeTree::getFakePartCoveringAllPartsInPartition(const St
auto zookeeper = getZooKeeper(); auto zookeeper = getZooKeeper();
delimiting_block_lock = allocateBlockNumber(partition_id, zookeeper); delimiting_block_lock = allocateBlockNumber(partition_id, zookeeper);
right = delimiting_block_lock->getNumber(); right = delimiting_block_lock->getNumber();
// Make sure we cover all parts in partition. In rare cases there might be parts with /// Make sure we cover all parts in drop range.
// mutation version greater than current block number. /// There might be parts with mutation version greater than current block number
/// if some part mutation has been asigned after block number allocation, but before creation of DROP_RANGE entry.
mutation_version = MergeTreePartInfo::MAX_BLOCK_NUMBER; mutation_version = MergeTreePartInfo::MAX_BLOCK_NUMBER;
} }