Merge pull request #35798 from xiedeyantu/patch-1

Delete duplicate code
This commit is contained in:
Kseniia Sumarokova 2022-04-01 10:43:31 +02:00 committed by GitHub
commit 04729ecc70
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