fix style

This commit is contained in:
Julia Kartseva 2024-10-01 22:32:03 +00:00
parent 05ed772ccf
commit 0c9954d977

View File

@ -1744,9 +1744,8 @@ void MergeTreeData::loadDataParts(bool skip_sanity_checks, std::optional<std::un
{ {
/// There still a chance that underlying disk is defined in storage policy /// There still a chance that underlying disk is defined in storage policy
const auto & delegate = disk->getDelegateDiskIfExists(); const auto & delegate = disk->getDelegateDiskIfExists();
is_disk_defined = delegate && !delegate->isBroken() && !delegate->isCustomDisk() is_disk_defined = delegate && !delegate->isBroken() && !delegate->isCustomDisk() && delegate->getPath() == disk->getPath()
&& delegate->getPath() == disk->getPath() && defined_disk_names.contains(delegate->getName());
&& defined_disk_names.contains(delegate->getName());
} }
if (!is_disk_defined && disk->existsDirectory(relative_data_path)) if (!is_disk_defined && disk->existsDirectory(relative_data_path))