Fixed that create_time is set properly for cached threads

This commit is contained in:
unknown 2005-04-06 15:52:32 +03:00
parent 0344bf1665
commit e23d1768a0

View file

@ -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;