Corrected freeing of thd when running with wsrep and thread pool
This is needed because of the new code where THD creation was moved to the new thread
This commit is contained in:
parent
70a4856df8
commit
1ab711bebb
@ -1847,14 +1847,15 @@ pthread_handler_t start_wsrep_THD(void *arg)
|
||||
// at server shutdown
|
||||
}
|
||||
|
||||
my_thread_end();
|
||||
if (thread_handling > SCHEDULER_ONE_THREAD_PER_CONNECTION)
|
||||
{
|
||||
mysql_mutex_lock(&LOCK_thread_count);
|
||||
delete thd;
|
||||
thread_count--;
|
||||
thd->unlink();
|
||||
mysql_mutex_unlock(&LOCK_thread_count);
|
||||
delete thd;
|
||||
dec_thread_count();
|
||||
}
|
||||
my_thread_end();
|
||||
return(NULL);
|
||||
|
||||
error:
|
||||
|
Loading…
x
Reference in New Issue
Block a user