summaryrefslogtreecommitdiff
path: root/sql/scheduler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r--sql/scheduler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/scheduler.cc b/sql/scheduler.cc
index de472ae2504..95702dbb4e1 100644
--- a/sql/scheduler.cc
+++ b/sql/scheduler.cc
@@ -39,6 +39,7 @@ static bool no_threads_end(THD *thd, bool put_in_cache)
{
unlink_thd(thd);
delete thd;
+ dec_thread_count();
}
return 1; // Abort handle_one_connection
}