mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Fix #58171
This commit is contained in:
parent
c91aa27668
commit
ffca9bc564
@ -66,6 +66,8 @@ void StaticThreadPool::reloadConfiguration(size_t max_threads, size_t max_free_t
|
||||
if (!instance)
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "The {} is not initialized", name);
|
||||
|
||||
std::lock_guard lock(mutex);
|
||||
|
||||
instance->setMaxThreads(turbo_mode_enabled > 0 ? max_threads_turbo : max_threads);
|
||||
instance->setMaxFreeThreads(max_free_threads);
|
||||
instance->setQueueSize(queue_size);
|
||||
|
Loading…
Reference in New Issue
Block a user