Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5936d43a
Commit
5936d43a
authored
Feb 02, 2018
by
Daniel Black
Committed by
Vladislav Vaintroub
Oct 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threadpool_size can contribute to the wanted_files
parent
00ddc8bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sql/mysqld.cc
sql/mysqld.cc
+4
-0
No files found.
sql/mysqld.cc
View file @
5936d43a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment