From 7beb288b278370cba76a135963dad1d01752c9c2 Mon Sep 17 00:00:00 2001 From: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com> Date: Fri, 19 Jan 2024 12:09:58 +0100 Subject: [PATCH] Update RegisterDiskObjectStorage.cpp --- src/Disks/ObjectStorages/RegisterDiskObjectStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Disks/ObjectStorages/RegisterDiskObjectStorage.cpp b/src/Disks/ObjectStorages/RegisterDiskObjectStorage.cpp index 4100183b1e3..1380c2a2ece 100644 --- a/src/Disks/ObjectStorages/RegisterDiskObjectStorage.cpp +++ b/src/Disks/ObjectStorages/RegisterDiskObjectStorage.cpp @@ -44,7 +44,7 @@ void registerDiskObjectStorage(DiskFactory & factory, bool global_skip_access_ch bool skip_access_check = global_skip_access_check || config.getBool(config_prefix + ".skip_access_check", false); auto object_storage = ObjectStorageFactory::instance().create(name, config, config_prefix, context, skip_access_check); std::string compatibility_metadata_type_hint; - if (!config.has("metadata_type")) + if (!config.has(config_prefix + ".metadata_type")) { compatibility_metadata_type_hint = getCompatibilityMetadataTypeHint(object_storage->getType()); }