diff options
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index e22d9b1dc67..19b7ef1ad62 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2104,10 +2104,11 @@ int main(int argc, char **argv) /* Retrieve used stack size; Needed for checking stack overflows */ size_t stack_size; pthread_attr_getstacksize(&connection_attrib, &stack_size); - if (global_system_variables.log_warnings && stack_size != thread_stack) + if (stack_size != thread_stack) { - sql_print_error("Warning: Asked for %ld thread stack, but got %ld", - thread_stack, stack_size); + if (global_system_variables.log_warnings) + sql_print_error("Warning: Asked for %ld thread stack, but got %ld", + thread_stack, stack_size); thread_stack= stack_size; } } |