1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Always initialize THD::thread_stack: it's used in

check_stack_overrun().
This commit is contained in:
konstantin@mysql.com
2005-11-23 21:18:10 +03:00
parent 83d692da88
commit b1d951d462
7 changed files with 17 additions and 2 deletions

View File

@ -517,6 +517,12 @@ void THD::awake(THD::killed_state state_to_set)
bool THD::store_globals()
{
/*
Assert that thread_stack is initialized: it's necessary to be able
to track stack overrun.
*/
DBUG_ASSERT(this->thread_stack);
if (my_pthread_setspecific_ptr(THR_THD, this) ||
my_pthread_setspecific_ptr(THR_MALLOC, &mem_root))
return 1;