mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Parent part can have prefix if it is in Temporary state
This commit is contained in:
parent
77a1d10b94
commit
3f3965b7f1
@ -319,7 +319,10 @@ IMergeTreeDataPart::IMergeTreeDataPart(
|
||||
{
|
||||
if (parent_part)
|
||||
{
|
||||
chassert(parent_part_name.starts_with(parent_part->info.partition_id)); /// Make sure there's no prefix
|
||||
if (parent_part->state != MergeTreeDataPartState::Temporary)
|
||||
{
|
||||
chassert(parent_part_name.starts_with(parent_part->info.partition_id)); /// Make sure there's no prefix
|
||||
}
|
||||
state = MergeTreeDataPartState::Active;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user