mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Slightly more information in error message about cached disk (#50897)
This commit is contained in:
parent
9a3cea379f
commit
72f2832129
@ -48,7 +48,9 @@ void registerDiskCache(DiskFactory & factory, bool /* global_skip_access_check *
|
||||
auto cache = FileCacheFactory::instance().getOrCreate(name, file_cache_settings);
|
||||
auto disk = disk_it->second;
|
||||
if (!dynamic_cast<const DiskObjectStorage *>(disk.get()))
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Cached disk is allowed only on top of object storage");
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
||||
"Cannot wrap disk `{}` with cache layer `{}`: cached disk is allowed only on top of object storage",
|
||||
disk_name, name);
|
||||
|
||||
auto disk_object_storage = disk->createDiskObjectStorage();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user