mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
Remove file for empty parts
This commit is contained in:
parent
7b63c3ac69
commit
a098298c0f
@ -1357,14 +1357,6 @@ void IMergeTreeDataPart::loadColumns(bool require)
|
||||
else
|
||||
{
|
||||
loaded_metadata_version = metadata_snapshot->getMetadataVersion();
|
||||
|
||||
if (!is_readonly_storage)
|
||||
{
|
||||
writeMetadata(METADATA_VERSION_FILE_NAME, {}, [loaded_metadata_version](auto & buffer)
|
||||
{
|
||||
writeIntText(loaded_metadata_version, buffer);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
setColumns(loaded_columns, infos, loaded_metadata_version);
|
||||
|
Loading…
Reference in New Issue
Block a user