summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMikael Ronström <mikael@dator9>2011-05-25 12:17:27 +0200
committerMikael Ronström <mikael@dator9>2011-05-25 12:17:27 +0200
commitf125f2994fe65bd40e42e4809b4b284cbe8017d6 (patch)
tree9b04ea7dda5503ced1400c848f3bc9ff3f60b247 /sql
parentaf3eff8da01c09e8db137135d43a44556b057508 (diff)
downloadmariadb-git-f125f2994fe65bd40e42e4809b4b284cbe8017d6.tar.gz
BUG#12578441, reintroduced thd->cleanup() in unlink_thd, removed by mistake, added private interface to this function
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index d67a04bcc23..8ea076e72ba 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -2009,6 +2009,19 @@ extern "C" sig_handler end_thread_signal(int sig __attribute__((unused)))
/*
+ Cleanup THD object
+
+ SYNOPSIS
+ thd_cleanup()
+ thd Thread handler
+*/
+
+void thd_cleanup(THD *thd)
+{
+ thd->cleanup();
+}
+
+/*
Decrease number of connections
SYNOPSIS
@@ -2054,6 +2067,7 @@ void unlink_thd(THD *thd)
DBUG_ENTER("unlink_thd");
DBUG_PRINT("enter", ("thd: 0x%lx", (long) thd));
+ thd_cleanup(thd);
dec_connection_count();
mysql_mutex_lock(&LOCK_thread_count);
delete_thd(thd);