mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
MDEV-22437 make THR_THD* variable thread_local
Now all access goes through _current_thd() and set_current_thd() functions. Some functions like THD::store_globals() can not fail now.
This commit is contained in:
parent
90aad47dd9
commit
89ff4176c1
23 changed files with 56 additions and 121 deletions
|
|
@ -128,11 +128,12 @@ bool
|
|||
post_init_event_thread(THD *thd)
|
||||
{
|
||||
(void) init_new_connection_handler_thread();
|
||||
if (init_thr_lock() || thd->store_globals())
|
||||
if (init_thr_lock())
|
||||
{
|
||||
thd->cleanup();
|
||||
return TRUE;
|
||||
}
|
||||
thd->store_globals();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue