Update src/Disks/DiskFomAST.cpp

Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
This commit is contained in:
Sema Checherinda 2024-08-08 11:32:42 +02:00 committed by GitHub
parent 06d154055f
commit dbe3035b6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ std::string getOrCreateCustomDisk(DiskConfigurationPtr config, const std::string
{ {
Poco::Util::AbstractConfiguration::Keys disk_settings_keys; Poco::Util::AbstractConfiguration::Keys disk_settings_keys;
config->keys(disk_settings_keys); config->keys(disk_settings_keys);
// Check that no settings are defined when disk from the config is referred. /// Check that no settings are defined when disk from the config is referred.
if (disk_settings_keys.empty()) if (disk_settings_keys.empty())
throw Exception( throw Exception(
ErrorCodes::BAD_ARGUMENTS, ErrorCodes::BAD_ARGUMENTS,