Remove file for empty parts

This commit is contained in:
alesapin 2023-04-25 16:15:13 +02:00
parent 7b63c3ac69
commit a098298c0f

View File

@ -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);