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

Method disableTurboMode

src/IO/SharedThreadPools.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void StaticThreadPool::disableTurboMode()
119{
120 if (!instance)
121 throw Exception(ErrorCodes::LOGICAL_ERROR, "The {} is not initialized", name);
122
123 std::lock_guard lock(mutex);
124
125 --turbo_mode_enabled;
126 if (turbo_mode_enabled == 0)
127 instance->setMaxThreads(max_threads_normal);
128}
129
130void StaticThreadPool::setMaxTurboThreads(size_t max_threads_turbo_)
131{

Calls 2

ExceptionClass · 0.70
setMaxThreadsMethod · 0.45

Tested by

no test coverage detected