mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Lower stack frame size
This commit is contained in:
parent
c202691319
commit
c491b2c153
@ -1024,7 +1024,8 @@ MergeTreeData::MutableDataPartPtr MergeTreeDataMergerMutator::mutatePartToTempor
|
||||
commands_for_part.emplace_back(command);
|
||||
}
|
||||
|
||||
if (source_part->isStoredOnDisk() && !isStorageTouchedByMutations(storage_from_source_part, metadata_snapshot, commands_for_part, context_for_reading))
|
||||
if (source_part->isStoredOnDisk() && !isStorageTouchedByMutations(
|
||||
storage_from_source_part, metadata_snapshot, commands_for_part, context_for_reading))
|
||||
{
|
||||
LOG_TRACE(log, "Part {} doesn't change up to mutation version {}", source_part->name, future_part.part_info.mutation);
|
||||
return data.cloneAndLoadDataPartOnSameDisk(source_part, "tmp_clone_", future_part.part_info, metadata_snapshot);
|
||||
@ -1036,7 +1037,7 @@ MergeTreeData::MutableDataPartPtr MergeTreeDataMergerMutator::mutatePartToTempor
|
||||
|
||||
BlockInputStreamPtr in = nullptr;
|
||||
Block updated_header;
|
||||
std::optional<MutationsInterpreter> interpreter;
|
||||
std::unique_ptr<MutationsInterpreter> interpreter;
|
||||
|
||||
const auto data_settings = data.getSettings();
|
||||
MutationCommands for_interpreter;
|
||||
@ -1051,7 +1052,8 @@ MergeTreeData::MutableDataPartPtr MergeTreeDataMergerMutator::mutatePartToTempor
|
||||
|
||||
if (!for_interpreter.empty())
|
||||
{
|
||||
interpreter.emplace(storage_from_source_part, metadata_snapshot, for_interpreter, context_for_reading, true);
|
||||
interpreter = std::make_unique<MutationsInterpreter>(
|
||||
storage_from_source_part, metadata_snapshot, for_interpreter, context_for_reading, true);
|
||||
in = interpreter->execute();
|
||||
updated_header = interpreter->getUpdatedHeader();
|
||||
in->setProgressCallback(MergeProgressCallback(merge_entry, watch_prev_elapsed, stage_progress));
|
||||
|
Loading…
Reference in New Issue
Block a user