mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
cleanup: thread_count
move thread_count handling into THD: * increment thread_count in THD constructor * decrement thread_count in THD destructor * never modify thread_count directly!
This commit is contained in:
@ -201,7 +201,6 @@ void threadpool_remove_connection(THD *thd)
|
||||
close_connection(thd, 0);
|
||||
unlink_thd(thd);
|
||||
delete thd;
|
||||
dec_thread_count();
|
||||
|
||||
/*
|
||||
Free resources associated with this connection:
|
||||
|
Reference in New Issue
Block a user