mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 07:32:27 +00:00
Update StorageReplicatedMergeTree.cpp
This commit is contained in:
parent
81dd60fdc2
commit
e0f214d0e9
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user