summaryrefslogtreecommitdiff
path: root/plugin/handler_socket/handlersocket/database.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/handler_socket/handlersocket/database.cpp')
-rw-r--r--plugin/handler_socket/handlersocket/database.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugin/handler_socket/handlersocket/database.cpp b/plugin/handler_socket/handlersocket/database.cpp
index 28ce6c78876..4292b826753 100644
--- a/plugin/handler_socket/handlersocket/database.cpp
+++ b/plugin/handler_socket/handlersocket/database.cpp
@@ -310,7 +310,6 @@ dbcontext::init_thread(const void *stack_bottom, volatile int& shutdown_flag)
}
{
thd->thread_id = next_thread_id();
- thread_safe_increment32(&thread_count);
add_to_active_threads(thd);
}
@@ -348,7 +347,6 @@ dbcontext::term_thread()
pthread_mutex_lock(&LOCK_thread_count);
delete thd;
thd = 0;
- --thread_count;
pthread_mutex_unlock(&LOCK_thread_count);
my_thread_end();
}