Commit 6183695e authored by unknown's avatar unknown

bookkeeping commit - bk will not let me pull Monty's changes until I commit...

bookkeeping commit - bk will not let me pull Monty's changes until I commit mine to my repository - this will not be pushed


sql/mysqld.cc:
  added explict net->timeout set to net_read_timeout before handshake
parent 99110483
...@@ -876,8 +876,9 @@ void end_thread(THD *thd, bool put_in_cache) ...@@ -876,8 +876,9 @@ void end_thread(THD *thd, bool put_in_cache)
thread_count--; thread_count--;
delete thd; delete thd;
if (cached_thread_count < thread_cache_size && ! abort_loop && if (put_in_cache && cached_thread_count < thread_cache_size
!kill_cached_threads) && ! abort_loop &&
!kill_cached_threads )
{ {
/* Don't kill the thread, just put it in cache for reuse */ /* Don't kill the thread, just put it in cache for reuse */
DBUG_PRINT("info", ("Adding thread to cache")) DBUG_PRINT("info", ("Adding thread to cache"))
...@@ -891,8 +892,8 @@ void end_thread(THD *thd, bool put_in_cache) ...@@ -891,8 +892,8 @@ void end_thread(THD *thd, bool put_in_cache)
{ {
wake_thread--; wake_thread--;
thd=thread_cache.get(); thd=thread_cache.get();
threads.append(thd);
(void) thd->store_globals(); (void) thd->store_globals();
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