Merge pull request #21308 from fuwhu/refine-wal-restore-code

remove unused code in MergeTreeWriteAheadLog::restore
This commit is contained in:
alexey-milovidov 2021-03-01 01:44:23 +03:00 committed by GitHub
commit 174f49a9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,6 @@ MergeTreeData::MutableDataPartsVector MergeTreeWriteAheadLog::restore(const Stor
}
else if (action_type == ActionType::ADD_PART)
{
auto part_disk = storage.reserveSpace(0)->getDisk();
auto single_disk_volume = std::make_shared<SingleDiskVolume>("volume_" + part_name, disk, 0);
part = storage.createPart(