This commit is contained in:
kssenii 2022-09-14 11:30:06 +02:00
parent 00d0b37cd0
commit ea31302071

View File

@ -131,9 +131,6 @@ DiskObjectStorageMetadata::DiskObjectStorageMetadata(
void DiskObjectStorageMetadata::addObject(const String & path, size_t size)
{
if (!object_storage_root_path.empty() && path.starts_with(object_storage_root_path))
throw Exception(ErrorCodes::LOGICAL_ERROR, "Expected relative path");
total_size += size;
storage_objects.emplace_back(path, size);
}