Add new settings to settings change history.

This commit is contained in:
marco-vb 2024-09-12 13:28:49 +00:00
parent f292767778
commit 562c23eac6
2 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,8 @@ static std::initializer_list<std::pair<ClickHouseVersion, SettingsChangesHistory
{"database_replicated_allow_replicated_engine_arguments", 1, 0, "Don't allow explicit arguments by default"}, {"database_replicated_allow_replicated_engine_arguments", 1, 0, "Don't allow explicit arguments by default"},
{"database_replicated_allow_explicit_uuid", 0, 0, "Added a new setting to disallow explicitly specifying table UUID"}, {"database_replicated_allow_explicit_uuid", 0, 0, "Added a new setting to disallow explicitly specifying table UUID"},
{"parallel_replicas_local_plan", false, false, "Use local plan for local replica in a query with parallel replicas"}, {"parallel_replicas_local_plan", false, false, "Use local plan for local replica in a query with parallel replicas"},
{"min_free_disk_bytes_to_throw_insert", 0, 0, "Maintain some free disk space bytes from inserts while still allowing for temporary writing."},
{"min_free_disk_ratio_to_throw_insert", 0.0, 0.0, "Maintain some free disk space bytes expressed as ratio to total disk space from inserts while still allowing for temporary writing."},
} }
}, },
{"24.8", {"24.8",

View File

@ -707,6 +707,7 @@ MergeTreeDataWriter::TemporaryPart MergeTreeDataWriter::writeProjectionPartImpl(
} }
// just check if there is enough space on parent volume // just check if there is enough space on parent volume
// down the line in reserving space there is concurrency safety so no need to worry about 'over-reserving'
MergeTreeData::reserveSpace(expected_size + reserve_extra, parent_part->getDataPartStorage()); MergeTreeData::reserveSpace(expected_size + reserve_extra, parent_part->getDataPartStorage());
part_type = data.choosePartFormatOnDisk(expected_size, block.rows()).part_type; part_type = data.choosePartFormatOnDisk(expected_size, block.rows()).part_type;