diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index e8cdd7d114a..d46d2e23ad6 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -1783,9 +1783,7 @@ void MergeTreeData::loadDataParts(bool skip_sanity_checks, std::optionaliterateDirectory(relative_data_path); it->isValid(); it->next()) { @@ -1797,7 +1795,6 @@ void MergeTreeData::loadDataParts(bool skip_sanity_checks, std::optionalname(), format_version)) { - std::lock_guard lock(loading_mutex); if (expected_parts && !expected_parts->contains(it->name())) unexpected_disk_parts.emplace_back(*part_info, it->name(), disk_ptr); else