Update MergeTreeData.cpp

This commit is contained in:
alexey-milovidov 2019-12-26 22:10:04 +03:00 committed by GitHub
parent c4e9784464
commit 938100dbe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -805,7 +805,7 @@ void MergeTreeData::loadDataParts(bool skip_sanity_checks)
{
MergeTreePartInfo part_info;
if (MergeTreePartInfo::tryParsePartName(it.name(), &part_info, format_version))
throw Exception("Part " + backQuote(it.name()) + " was found on a disk " + backQuote(disk_name) + " which is not defined in the storage policy", ErrorCodes::UNKNOWN_DISK);
throw Exception("Part " + backQuote(it.name()) + " was found on disk " + backQuote(disk_name) + " which is not defined in the storage policy", ErrorCodes::UNKNOWN_DISK);
}
}
}