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
88eee63d
Commit
88eee63d
authored
Dec 03, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set thread_stack after return from end_thread()
Fixes core dump when reusing thread when running debug binary
parent
f5804869
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
sql-bench/bench-init.pl.sh
sql-bench/bench-init.pl.sh
+1
-1
sql-bench/server-cfg.sh
sql-bench/server-cfg.sh
+5
-5
sql/mysqld.cc
sql/mysqld.cc
+1
-0
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
No files found.
sql-bench/bench-init.pl.sh
View file @
88eee63d
...
...
@@ -447,7 +447,7 @@ All benchmarks takes the following options:
--create-options=#
Extra argument to all create statements. If you for example want to
create all MySQL tables as BDB tables use:
--create-options=
TYP
E=BDB
--create-options=
ENGIN
E=BDB
--database (Default
$opt_database
)
In which database the test tables are created.
...
...
sql-bench/server-cfg.sh
View file @
88eee63d
...
...
@@ -174,29 +174,29 @@ sub new
# Some fixes that depends on the environment
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /
typ
e
=
heap/i
)
$main
::opt_create_options
=
~ /
engin
e
=
heap/i
)
{
$limits
{
'working_blobs'
}
=
0
;
# HEAP tables can't handle BLOB's
}
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /
typ
e
=
innodb/i
)
$main
::opt_create_options
=
~ /
engin
e
=
innodb/i
)
{
$self
->
{
'transactions'
}
=
1
;
# Transactions enabled
}
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /
typ
e
=
ndb/i
)
$main
::opt_create_options
=
~ /
engin
e
=
ndb/i
)
{
$self
->
{
'transactions'
}
=
1
;
# Transactions enabled
$limits
{
'max_columns'
}
=
90
;
# Max number of columns in table
$limits
{
'max_tables'
}
=
32
;
# No comments
}
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /
typ
e
=
bdb/i
)
$main
::opt_create_options
=
~ /
engin
e
=
bdb/i
)
{
$self
->
{
'transactions'
}
=
1
;
# Transactions enabled
}
if
(
defined
(
$main
::opt_create_options
)
&&
$main
::opt_create_options
=
~ /
typ
e
=
gemini/i
)
$main
::opt_create_options
=
~ /
engin
e
=
gemini/i
)
{
$limits
{
'working_blobs'
}
=
0
;
# Blobs not implemented yet
$limits
{
'max_tables'
}
=
500
;
...
...
sql/mysqld.cc
View file @
88eee63d
...
...
@@ -1589,6 +1589,7 @@ void end_thread(THD *thd, bool put_in_cache)
wake_thread
--
;
thd
=
thread_cache
.
get
();
thd
->
real_id
=
pthread_self
();
thd
->
thread_stack
=
(
char
*
)
&
thd
;
// For store_globals
(
void
)
thd
->
store_globals
();
thd
->
thr_create_time
=
time
(
NULL
);
threads
.
append
(
thd
);
...
...
sql/sql_parse.cc
View file @
88eee63d
...
...
@@ -1182,6 +1182,7 @@ pthread_handler_t handle_one_connection(void *arg)
or this thread has been schedule to handle the next query
*/
thd
=
current_thd
;
thd
->
thread_stack
=
(
char
*
)
&
thd
;
}
while
(
!
(
test_flags
&
TEST_NO_THREADS
));
/* The following is only executed if we are not using --one-thread */
return
(
0
);
/* purecov: deadcode */
...
...
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