List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:July 31 2009 12:42pm
Subject:bzr push into mysql-5.1-bugteam branch (davi:3053 to 3054) Bug#43435
View as plain text  
 3054 Davi Arnaut	2009-07-30
      Bug#43435: LOCK_open does not use MY_MUTEX_INIT_FAST
      
      Initialize LOCK_open as a adapative mutex on platforms where the
      PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP macro is available. The flag
      indicates that a thread should spin (busy wait) for some time on a
      locked adaptive mutex before blocking (sleeping). It's intended to
      to alleviate performance problems due to LOCK_open being a highly
      contended mutex.
     @ sql/mysqld.cc
        Initialize LOCK_open as a adapative mutex.

    modified:
      sql/mysqld.cc
 3053 V Narayanan	2009-07-31 [merge]
      merging with mysql-5.1-bugteam

    modified:
      include/myisammrg.h
      mysql-test/r/merge.result
      mysql-test/t/merge.test
      storage/myisammrg/ha_myisammrg.cc
      storage/myisammrg/ha_myisammrg.h
      storage/myisammrg/myrg_info.c
=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc	2009-07-30 19:11:39 +0000
+++ b/sql/mysqld.cc	2009-07-30 20:52:42 +0000
@@ -3519,7 +3519,7 @@ static int init_thread_environment()
   (void) pthread_mutex_init(&LOCK_mysql_create_db,MY_MUTEX_INIT_SLOW);
   (void) pthread_mutex_init(&LOCK_lock_db,MY_MUTEX_INIT_SLOW);
   (void) pthread_mutex_init(&LOCK_Acl,MY_MUTEX_INIT_SLOW);
-  (void) pthread_mutex_init(&LOCK_open, NULL);
+  (void) pthread_mutex_init(&LOCK_open, MY_MUTEX_INIT_FAST);
   (void) pthread_mutex_init(&LOCK_thread_count,MY_MUTEX_INIT_FAST);
   (void) pthread_mutex_init(&LOCK_mapped_file,MY_MUTEX_INIT_SLOW);
   (void) pthread_mutex_init(&LOCK_status,MY_MUTEX_INIT_FAST);


Attachment: [text/bzr-bundle] bzr/davi.arnaut@sun.com-20090730205242-2dh63q9vr8q3ym1z.bundle
Thread
bzr push into mysql-5.1-bugteam branch (davi:3053 to 3054) Bug#43435Davi Arnaut31 Jul