diff options
author | Mikael Ronström <mikael@dator9> | 2011-05-25 12:17:27 +0200 |
---|---|---|
committer | Mikael Ronström <mikael@dator9> | 2011-05-25 12:17:27 +0200 |
commit | 4c95c5d8f620adc02f8ef6048905f2f71c6f67ca (patch) | |
tree | 9b04ea7dda5503ced1400c848f3bc9ff3f60b247 /sql | |
parent | 63c6303657b7f18625be61d1dfd4456fb01d5de9 (diff) | |
download | mariadb-git-4c95c5d8f620adc02f8ef6048905f2f71c6f67ca.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.cc | 14 |
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); |