diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-18 20:40:38 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-18 20:40:38 +0100 |
commit | a5a22e9f641623886ec7c051e7ae40eadad0b023 (patch) | |
tree | 55a9c27576b0dab700e230880e92143411b23dee /sql/threadpool_common.cc | |
parent | 468104567f6b0a1fe552f38717005f286c402125 (diff) | |
download | mariadb-git-a5a22e9f641623886ec7c051e7ae40eadad0b023.tar.gz |
Small adjustements to threadpool
Diffstat (limited to 'sql/threadpool_common.cc')
-rw-r--r-- | sql/threadpool_common.cc | 6 |
1 files changed, 2 insertions, 4 deletions
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; } |