diff options
author | Daniel Black <daniel@linux.ibm.com> | 2018-02-02 14:24:36 +1100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-10-12 08:22:10 +0200 |
commit | 5936d43afb6ad5a75d9eed17eb39e8c00a08a684 (patch) | |
tree | 9d685f686a9a9b5a185cd0dce3d73f74cda9c16f /sql/mysqld.cc | |
parent | 00ddc8bc7c003122bc424929f2a85872dbd8b813 (diff) | |
download | mariadb-git-5936d43afb6ad5a75d9eed17eb39e8c00a08a684.tar.gz |
threadpool_size can contribute to the wanted_files
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 6ac54d59ee4..32253e60791 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -4088,6 +4088,10 @@ static int init_common_variables() /* MyISAM requires two file handles per table. */ wanted_files= (10 + max_connections + extra_max_connections + tc_size * 2); +#if defined(HAVE_POOL_OF_THREADS) && !defined(__WIN__) + // add epoll or kevent fd for each threadpool group, in case pool of threads is used + wanted_file+= (thread_handling > SCHEDULER_NO_THREADS) ? 0 : threadpool_size; +#endif /* We are trying to allocate no less than max_connections*5 file handles (i.e. we are trying to set the limit so that they will |