mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
Fixed that create_time is set properly for cached threads
This commit is contained in:
parent
0344bf1665
commit
e23d1768a0
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue