List:Commits« Previous MessageNext Message »
From:Ignacio Galarza Date:April 23 2007 6:28pm
Subject:bk commit into 5.0 tree (iggy:1.2437) BUG#25621
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of iggy. When iggy does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-04-23 14:28:33-04:00, iggy@recycle.(none) +1 -0
  Bug#25621 Error in my_thread_global_end(): 1 threads didn't exit
  - On Windows, connection handlers while exiting properly did not 
  decrement the server's thread count.

  sql/mysqld.cc@stripped, 2007-04-23 14:28:32-04:00, iggy@recycle.(none) +2 -1
    Bug#25621 Error in my_thread_global_end(): 1 threads didn't exit
    - Make sure that connection handlers decrement number of threads
    and handlers on Windows.
    - Signal condition variable before unlocking mutex.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	iggy
# Host:	recycle.(none)
# Root:	/src/bug25621/my50-bug25621

--- 1.602/sql/mysqld.cc	2007-03-30 18:15:14 -04:00
+++ 1.603/sql/mysqld.cc	2007-04-23 14:28:32 -04:00
@@ -3400,8 +3400,9 @@ void decrement_handler_count()
 {
   pthread_mutex_lock(&LOCK_thread_count);
   handler_count--;
-  pthread_mutex_unlock(&LOCK_thread_count);
   pthread_cond_signal(&COND_handler_count);
+  pthread_mutex_unlock(&LOCK_thread_count);  
+  my_thread_end();
 }
 #else
 #define decrement_handler_count()
Thread
bk commit into 5.0 tree (iggy:1.2437) BUG#25621Ignacio Galarza23 Apr