List:Commits« Previous MessageNext Message »
From:Konstantin Osipov Date:June 27 2008 7:07pm
Subject:bzr commit into mysql-6.0 branch (konstantin:2662) Bug#36929
View as plain text  
#At file:///opt/local/work/mysql-6.0-runtime/

 2662 Konstantin Osipov	2008-06-27
      Apply a short version of the fix for BUG#36929 before pushing to the
      main tree to fix numerous test failures in pool-of-threads mode.
modified:
  sql/scheduler.cc

=== modified file 'sql/scheduler.cc'
--- a/sql/scheduler.cc	2008-05-14 13:33:43 +0000
+++ b/sql/scheduler.cc	2008-06-27 19:07:13 +0000
@@ -222,7 +222,9 @@ void thd_scheduler::thread_detach()
   if (thread_attached)
   {
     THD* thd = (THD*)list.data;
+    pthread_mutex_lock(&thd->LOCK_delete);
     thd->mysys_var= NULL;
+    pthread_mutex_unlock(&thd->LOCK_delete);
     thread_attached= FALSE;
 #ifndef DBUG_OFF
     /*

Thread
bzr commit into mysql-6.0 branch (konstantin:2662) Bug#36929Konstantin Osipov27 Jun