Commit 5936d43a authored by Daniel Black's avatar Daniel Black Committed by Vladislav Vaintroub

threadpool_size can contribute to the wanted_files

parent 00ddc8bc
...@@ -4088,6 +4088,10 @@ static int init_common_variables() ...@@ -4088,6 +4088,10 @@ static int init_common_variables()
/* MyISAM requires two file handles per table. */ /* MyISAM requires two file handles per table. */
wanted_files= (10 + max_connections + extra_max_connections + wanted_files= (10 + max_connections + extra_max_connections +
tc_size * 2); 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 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 handles (i.e. we are trying to set the limit so that they will
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment