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
b729c1a1
Commit
b729c1a1
authored
Sep 06, 2021
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a false positive GCC5 warning.
parent
84c578c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
sql/signal_handler.cc
sql/signal_handler.cc
+9
-7
No files found.
sql/signal_handler.cc
View file @
b729c1a1
...
@@ -191,16 +191,18 @@ extern "C" sig_handler handle_fatal_signal(int sig)
...
@@ -191,16 +191,18 @@ extern "C" sig_handler handle_fatal_signal(int sig)
if
(
dflt_key_cache
&&
thread_scheduler
)
if
(
dflt_key_cache
&&
thread_scheduler
)
{
{
my_safe_printf_stderr
(
"It is possible that mysqld could use up to
\n
"
size_t
used_mem
=
"key_buffer_size + "
"(read_buffer_size + sort_buffer_size)*max_threads = "
"%zu K bytes of memory
\n
"
,
(
dflt_key_cache
->
key_cache_mem_size
+
(
dflt_key_cache
->
key_cache_mem_size
+
(
global_system_variables
.
read_buff_size
+
(
global_system_variables
.
read_buff_size
+
(
size_t
)
global_system_variables
.
sortbuff_size
)
*
(
size_t
)
global_system_variables
.
sortbuff_size
)
*
(
thread_scheduler
->
max_threads
+
extra_max_connections
)
+
(
thread_scheduler
->
max_threads
+
extra_max_connections
)
+
(
max_connections
+
extra_max_connections
)
*
(
max_connections
+
extra_max_connections
)
*
sizeof
(
THD
))
/
1024
;
sizeof
(
THD
))
/
1024
);
my_safe_printf_stderr
(
"It is possible that mysqld could use up to
\n
"
"key_buffer_size + "
"(read_buffer_size + sort_buffer_size)*max_threads = "
"%zu K bytes of memory
\n
"
,
used_mem
);
my_safe_printf_stderr
(
"%s"
,
my_safe_printf_stderr
(
"%s"
,
"Hope that's ok; if not, decrease some variables in "
"Hope that's ok; if not, decrease some variables in "
"the equation.
\n\n
"
);
"the equation.
\n\n
"
);
...
...
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