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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
025dde78
Commit
025dde78
authored
Feb 08, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check how much stack we got; Needed to be able to run crash-me
parent
d92022f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6507 additions
and
25 deletions
+6507
-25
sql-bench/limits/mysql.cfg
sql-bench/limits/mysql.cfg
+6496
-24
sql/mysqld.cc
sql/mysqld.cc
+11
-1
No files found.
sql-bench/limits/mysql.cfg
View file @
025dde78
This source diff could not be displayed because it is too large. You can
view the blob
instead.
sql/mysqld.cc
View file @
025dde78
...
...
@@ -2130,7 +2130,17 @@ int main(int argc, char **argv)
(
void
)
pthread_attr_setdetachstate
(
&
connection_attrib
,
PTHREAD_CREATE_DETACHED
);
pthread_attr_setstacksize
(
&
connection_attrib
,
thread_stack
);
{
/* 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
)
{
sql_print_error
(
"Warning: Asked for %ld thread stack, but got %ld"
,
thread_stack
,
stack_size
);
thread_stack
=
stack_size
;
}
}
if
(
!
(
opt_specialflag
&
SPECIAL_NO_PRIOR
))
my_pthread_attr_setprio
(
&
connection_attrib
,
WAIT_PRIOR
);
pthread_attr_setscope
(
&
connection_attrib
,
PTHREAD_SCOPE_SYSTEM
);
...
...
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