We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a4856 commit 1ab711bCopy full SHA for 1ab711b
sql/wsrep_mysqld.cc
@@ -1847,14 +1847,15 @@ pthread_handler_t start_wsrep_THD(void *arg)
1847
// at server shutdown
1848
}
1849
1850
- my_thread_end();
1851
if (thread_handling > SCHEDULER_ONE_THREAD_PER_CONNECTION)
1852
{
1853
mysql_mutex_lock(&LOCK_thread_count);
1854
- delete thd;
1855
- thread_count--;
+ thd->unlink();
1856
mysql_mutex_unlock(&LOCK_thread_count);
+ delete thd;
+ dec_thread_count();
1857
1858
+ my_thread_end();
1859
return(NULL);
1860
1861
error:
0 commit comments