From 562c1df7d97cb23145e09b3482fd18d49476752d Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 14 May 2016 13:22:47 +0200 Subject: 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! --- sql/threadpool_common.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/threadpool_common.cc') diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc index 9de168c9fdf..a7996efc382 100644 --- a/sql/threadpool_common.cc +++ b/sql/threadpool_common.cc @@ -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: -- cgit v1.2.1