mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
decrement thead_count *after* THD is destroyed
because thread_count means just that: number of THDs and shutdown code looks at it to know when to free shared data structures that THD uses. This fixes random crashes in ~THD on shutdown
This commit is contained in:
parent
74aef87c5e
commit
7425610c81
3 changed files with 4 additions and 2 deletions
|
|
@ -39,6 +39,7 @@ static bool no_threads_end(THD *thd, bool put_in_cache)
|
|||
{
|
||||
unlink_thd(thd);
|
||||
delete thd;
|
||||
dec_thread_count();
|
||||
}
|
||||
return 1; // Abort handle_one_connection
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue