Skip to content

Commit 1df5c28

Browse files
Merge pull request #11314 from ClickHouse/fix-race-condition-thread-pool
Fix very rare race condition in ThreadPool
2 parents 669a15b + 43c2a46 commit 1df5c28

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/Common/ThreadPool.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,6 @@ void ThreadPoolImpl<Thread>::worker(typename std::list<Thread>::iterator thread_
234234
--scheduled_jobs;
235235
}
236236

237-
DB::tryLogCurrentException("ThreadPool",
238-
std::string("Exception in ThreadPool(") +
239-
"max_threads: " + std::to_string(max_threads)
240-
+ ", max_free_threads: " + std::to_string(max_free_threads)
241-
+ ", queue_size: " + std::to_string(queue_size)
242-
+ ", shutdown_on_exception: " + std::to_string(shutdown_on_exception)
243-
+ ").");
244-
245237
job_finished.notify_all();
246238
new_job_or_shutdown.notify_all();
247239
return;

0 commit comments

Comments
 (0)