diff options
author | unknown <monty@mysql.com> | 2005-04-06 15:52:32 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-04-06 15:52:32 +0300 |
commit | 2bb7b4ec561e9c988b4173ae132bf7de9508e0ac (patch) | |
tree | 200e9a7c56f2e70f671375a484eee957e3548861 /sql/mysqld.cc | |
parent | 9c645d8118df53d0b7c29580cec8d2327cd42fb4 (diff) | |
download | mariadb-git-2bb7b4ec561e9c988b4173ae132bf7de9508e0ac.tar.gz |
Fixed that create_time is set properly for cached threads
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 1 |
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; |