From a5a22e9f641623886ec7c051e7ae40eadad0b023 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Sun, 18 Dec 2011 20:40:38 +0100 Subject: Small adjustements to threadpool --- sql/threadpool_common.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sql/threadpool_common.cc') diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc index 01546162377..229c913ab44 100644 --- a/sql/threadpool_common.cc +++ b/sql/threadpool_common.cc @@ -17,13 +17,11 @@ extern void thd_cleanup(THD *thd); extern void delete_thd(THD *thd); /* Threadpool parameters */ -#ifdef _WIN32 + uint threadpool_min_threads; -#else uint threadpool_idle_timeout; uint threadpool_size; uint threadpool_stall_limit; -#endif uint threadpool_max_threads; @@ -127,7 +125,7 @@ int threadpool_add_connection(THD *thd) thd->net.reading_or_writing= 1; } } - + thd->skip_wait_timeout= true; thread_detach(thd, psi_thread); return retval; } -- cgit v1.2.1