diff options
author | unknown <sasha@mysql.sashanet.com> | 2000-08-15 11:42:09 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2000-08-15 11:42:09 -0600 |
commit | 6183695e8a234b07b889f919ffa74a52f6497c2c (patch) | |
tree | 8d124ee24a0d217402d925cc119d4084019b96f5 | |
parent | 99110483b2271095dd8b2cb655e3a054f6f7c5a5 (diff) | |
download | mariadb-git-6183695e8a234b07b889f919ffa74a52f6497c2c.tar.gz |
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
-rw-r--r-- | sql/mysqld.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 179c7ecd9dc..5a306a0923b 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -876,8 +876,9 @@ void end_thread(THD *thd, bool put_in_cache) thread_count--; delete thd; - if (cached_thread_count < thread_cache_size && ! abort_loop && - !kill_cached_threads) + if (put_in_cache && cached_thread_count < thread_cache_size + && ! abort_loop && + !kill_cached_threads ) { /* Don't kill the thread, just put it in cache for reuse */ DBUG_PRINT("info", ("Adding thread to cache")) @@ -891,8 +892,8 @@ void end_thread(THD *thd, bool put_in_cache) { wake_thread--; thd=thread_cache.get(); - threads.append(thd); (void) thd->store_globals(); + threads.append(thd); pthread_mutex_unlock(&LOCK_thread_count); DBUG_VOID_RETURN; } |