Commit e23d1768 authored by unknown's avatar unknown

Fixed that create_time is set properly for cached threads

parent 0344bf16
...@@ -1488,6 +1488,7 @@ void end_thread(THD *thd, bool put_in_cache) ...@@ -1488,6 +1488,7 @@ void end_thread(THD *thd, bool put_in_cache)
thd=thread_cache.get(); thd=thread_cache.get();
thd->real_id=pthread_self(); thd->real_id=pthread_self();
(void) thd->store_globals(); (void) thd->store_globals();
thd->thr_create_time= time(NULL);
threads.append(thd); threads.append(thd);
pthread_mutex_unlock(&LOCK_thread_count); pthread_mutex_unlock(&LOCK_thread_count);
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment