Delete duplicate code

Delete duplicate code
This commit is contained in:
xiedeyantu 2022-03-31 19:34:30 +08:00 committed by GitHub
parent f6bfdcc0c9
commit d141dbc388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1314,9 +1314,6 @@ void MergeTreeData::loadDataParts(bool skip_sanity_checks)
if (!parts_from_wal.empty())
loadDataPartsFromWAL(broken_parts_to_detach, duplicate_parts_to_remove, parts_from_wal, part_lock);
for (auto & part : duplicate_parts_to_remove)
part->remove();
for (auto & part : broken_parts_to_detach)
part->renameToDetached("broken-on-start"); /// detached parts must not have '_' in prefixes