summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-04-06 15:52:32 +0300
committerunknown <monty@mysql.com>2005-04-06 15:52:32 +0300
commite23d1768a0ac10c58513714489412d180c2ac89d (patch)
tree200e9a7c56f2e70f671375a484eee957e3548861 /sql/mysqld.cc
parent0344bf166534fd56095220f06960172937746327 (diff)
downloadmariadb-git-e23d1768a0ac10c58513714489412d180c2ac89d.tar.gz
Fixed that create_time is set properly for cached threads
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index d75efbd0b00..c76ccf5daf7 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -1488,6 +1488,7 @@ void end_thread(THD *thd, bool put_in_cache)
thd=thread_cache.get();
thd->real_id=pthread_self();
(void) thd->store_globals();
+ thd->thr_create_time= time(NULL);
threads.append(thd);
pthread_mutex_unlock(&LOCK_thread_count);
DBUG_VOID_RETURN;