@@ -2281,7 +2281,11 @@ ThreadPool & Context::getLoadMarksThreadpool() const
22812281 auto pool_size = config.getUInt (" .load_marks_threadpool_pool_size" , 50 );
22822282 auto queue_size = config.getUInt (" .load_marks_threadpool_queue_size" , 1000000 );
22832283 shared->load_marks_threadpool = std::make_unique<ThreadPool>(
2284- CurrentMetrics::MarksLoaderThreads, CurrentMetrics::MarksLoaderThreadsActive, pool_size, pool_size, queue_size);
2284+ CurrentMetrics::MarksLoaderThreads,
2285+ CurrentMetrics::MarksLoaderThreadsActive,
2286+ pool_size,
2287+ /* max_free_threads = */ 0 ,
2288+ queue_size);
22852289 }
22862290 return *shared->load_marks_threadpool ;
22872291}
@@ -2307,7 +2311,7 @@ ThreadPool & Context::getPrefetchThreadpool() const
23072311 auto pool_size = getPrefetchThreadpoolSize ();
23082312 auto queue_size = config.getUInt (" .prefetch_threadpool_queue_size" , 1000000 );
23092313 shared->prefetch_threadpool = std::make_unique<ThreadPool>(
2310- CurrentMetrics::IOPrefetchThreads, CurrentMetrics::IOPrefetchThreadsActive, pool_size, pool_size , queue_size);
2314+ CurrentMetrics::IOPrefetchThreads, CurrentMetrics::IOPrefetchThreadsActive, pool_size, /* max_free_threads = */ 0 , queue_size);
23112315 }
23122316 return *shared->prefetch_threadpool ;
23132317}
@@ -4249,7 +4253,7 @@ ThreadPool & Context::getThreadPoolWriter() const
42494253 auto queue_size = config.getUInt (" .threadpool_writer_queue_size" , 1000000 );
42504254
42514255 shared->threadpool_writer = std::make_unique<ThreadPool>(
4252- CurrentMetrics::IOWriterThreads, CurrentMetrics::IOWriterThreadsActive, pool_size, pool_size , queue_size);
4256+ CurrentMetrics::IOWriterThreads, CurrentMetrics::IOWriterThreadsActive, pool_size, /* max_free_threads = */ 0 , queue_size);
42534257 }
42544258
42554259 return *shared->threadpool_writer ;
0 commit comments