Commit e23d1768 authored by unknown's avatar unknown
Browse files

Fixed that create_time is set properly for cached threads

parent 0344bf16
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;