summaryrefslogtreecommitdiff
path: root/sql/threadpool_common.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-05-14 13:22:47 +0200
committerSergei Golubchik <serg@mariadb.org>2016-06-04 09:06:00 +0200
commit562c1df7d97cb23145e09b3482fd18d49476752d (patch)
tree0d8e3d45c78dafd5854e8c6d6488b232f3f631a7 /sql/threadpool_common.cc
parent7425610c81ca1329d72a97f57770e5b052d08079 (diff)
downloadmariadb-git-562c1df7d97cb23145e09b3482fd18d49476752d.tar.gz
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!
Diffstat (limited to 'sql/threadpool_common.cc')
-rw-r--r--sql/threadpool_common.cc1
1 files changed, 0 insertions, 1 deletions
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: