mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
fix initialization of the name of the merged part
This commit is contained in:
parent
9f4377b771
commit
b1ebc6da46
@ -92,6 +92,7 @@ void MergeTreeDataMerger::FuturePart::assign(MergeTreeData::DataPartsVector part
|
||||
part_info.min_block = parts.front()->info.min_block;
|
||||
part_info.max_block = parts.back()->info.max_block;
|
||||
part_info.level = max_level + 1;
|
||||
part_info.version = parts.front()->info.version;
|
||||
|
||||
if (parts.front()->storage.format_version < MERGE_TREE_DATA_MIN_FORMAT_VERSION_WITH_CUSTOM_PARTITIONING)
|
||||
{
|
||||
|
@ -388,11 +388,6 @@ bool StorageMergeTree::merge(
|
||||
if (!selected)
|
||||
return false;
|
||||
|
||||
/// TODO: move to FuturePart initialization.
|
||||
Int64 mutation_version = getCurrentMutationVersion(future_part.parts.front(), lock);
|
||||
if (future_part.part_info.min_block < mutation_version)
|
||||
future_part.part_info.version = mutation_version;
|
||||
|
||||
merging_tagger.emplace(future_part.parts, MergeTreeDataMerger::estimateDiskSpaceForMerge(future_part.parts), *this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user