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
5d782cc5
Commit
5d782cc5
authored
Feb 08, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merge with 4.0.11 to get fix for thread stack
parents
cb38070e
0cf63e82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6507 additions
and
24 deletions
+6507
-24
sql-bench/limits/mysql.cfg
sql-bench/limits/mysql.cfg
+6496
-24
sql/mysqld.cc
sql/mysqld.cc
+11
-0
No files found.
sql-bench/limits/mysql.cfg
View file @
5d782cc5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
sql/mysqld.cc
View file @
5d782cc5
...
@@ -2378,6 +2378,17 @@ int main(int argc, char **argv)
...
@@ -2378,6 +2378,17 @@ int main(int argc, char **argv)
if
(
init_thread_environment
())
if
(
init_thread_environment
())
unireg_abort
(
1
);
unireg_abort
(
1
);
pthread_attr_setstacksize
(
&
connection_attrib
,
thread_stack
);
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
;
}
}
(
void
)
thr_setconcurrency
(
concurrency
);
// 10 by default
(
void
)
thr_setconcurrency
(
concurrency
);
// 10 by default
select_thread
=
pthread_self
();
select_thread
=
pthread_self
();
...
...
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