Merge pull request #29414 from Algunenano/max_concurrent_hot_reload

Allow reloading max_concurrent_queries without a server restart
This commit is contained in:
Nikita Mikhaylov 2021-09-28 11:33:07 +03:00 committed by GitHub
commit ddb0849cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -859,6 +859,9 @@ if (ThreadFuzzer::instance().isEffective())
if (config->has("max_partition_size_to_drop"))
global_context->setMaxPartitionSizeToDrop(config->getUInt64("max_partition_size_to_drop"));
if (config->has("max_concurrent_queries"))
global_context->getProcessList().setMaxSize(config->getInt("max_concurrent_queries", 0));
if (!initial_loading)
{
/// We do not load ZooKeeper configuration on the first config loading