Merge pull request #63831 from ClickHouse/chesema-fix-ch-disk

clickhouse disks reads server configs
This commit is contained in:
Sema Checherinda 2024-05-16 11:25:23 +00:00 committed by GitHub
commit 64b51eceb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4467,7 +4467,7 @@ void Context::setApplicationType(ApplicationType type)
/// Lock isn't required, you should set it at start
shared->application_type = type;
if (type == ApplicationType::LOCAL || type == ApplicationType::SERVER)
if (type == ApplicationType::LOCAL || type == ApplicationType::SERVER || type == ApplicationType::DISKS)
shared->server_settings.loadSettingsFromConfig(Poco::Util::Application::instance().config());
if (type == ApplicationType::SERVER)