Move server_threads.erase() under lightweight cleanup as

when plugins_are_initialized we already called unlink_thd()
and that calls server_threads.erase()
This commit is contained in:
Jan Lindström 2019-06-12 12:25:24 +03:00
parent e68d3e4557
commit b6e0d2475c

View File

@ -2694,9 +2694,9 @@ void* start_wsrep_THD(void *arg)
'Error in my_thread_global_end(): 2 threads didn't exit'
at server shutdown
*/
server_threads.erase(thd);
}
server_threads.erase(thd);
delete thd;
my_thread_end();
return(NULL);