diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index b5c881a6efb..e8cdd7d114a 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -1744,9 +1744,8 @@ void MergeTreeData::loadDataParts(bool skip_sanity_checks, std::optionalgetDelegateDiskIfExists(); - is_disk_defined = delegate && !delegate->isBroken() && !delegate->isCustomDisk() - && delegate->getPath() == disk->getPath() - && defined_disk_names.contains(delegate->getName()); + is_disk_defined = delegate && !delegate->isBroken() && !delegate->isCustomDisk() && delegate->getPath() == disk->getPath() + && defined_disk_names.contains(delegate->getName()); } if (!is_disk_defined && disk->existsDirectory(relative_data_path))