MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / reloadConfiguration

Method reloadConfiguration

src/IO/SharedThreadPools.cpp:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void StaticThreadPool::reloadConfiguration(size_t max_threads, size_t max_free_threads, size_t queue_size)
86{
87 if (!instance)
88 throw Exception(ErrorCodes::LOGICAL_ERROR, "The {} is not initialized", name);
89
90 std::lock_guard lock(mutex);
91
92 instance->setMaxThreads(turbo_mode_enabled > 0 ? max_threads_turbo : max_threads);
93 instance->setMaxFreeThreads(max_free_threads);
94 instance->setQueueSize(queue_size);
95}
96
97
98ThreadPool & StaticThreadPool::get()

Callers 1

mainMethod · 0.80

Calls 4

setMaxFreeThreadsMethod · 0.80
ExceptionClass · 0.70
setMaxThreadsMethod · 0.45
setQueueSizeMethod · 0.45

Tested by

no test coverage detected