From: Tor Didriksen Date: December 6 2012 1:23pm Subject: bzr push into mysql-5.6 branch (tor.didriksen:4731 to 4732) Bug#15959758 List-Archive: http://lists.mysql.com/commits/145453 X-Bug: 15959758 Message-Id: <20121206132353.2541.34184.4732@atum07.no.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 4732 Tor Didriksen 2012-12-06 Bug#15959758 MUTEX LOCK_THREAD_CREATED IS NOT INSTRUMENTED modified: sql/mysqld.cc sql/mysqld.h 4731 Harin Vadodaria 2012-12-06 [merge] Bug#15912213: BUFFER OVERFLOW IN ACL_GET() Description: Null merge. === modified file 'sql/mysqld.cc' --- a/sql/mysqld.cc 2012-11-30 14:25:38 +0000 +++ b/sql/mysqld.cc 2012-12-06 12:22:21 +0000 @@ -4122,7 +4122,8 @@ You should consider changing lower_case_ static int init_thread_environment() { - mysql_mutex_init(0, &LOCK_thread_created, MY_MUTEX_INIT_FAST); + mysql_mutex_init(key_LOCK_thread_created, + &LOCK_thread_created, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_LOCK_thread_count, &LOCK_thread_count, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_LOCK_status, &LOCK_status, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_LOCK_delayed_insert, @@ -9133,6 +9134,7 @@ PSI_mutex_key key_RELAYLOG_LOCK_sync; PSI_mutex_key key_RELAYLOG_LOCK_sync_queue; PSI_mutex_key key_LOCK_sql_rand; PSI_mutex_key key_gtid_ensure_index_mutex; +PSI_mutex_key key_LOCK_thread_created; static PSI_mutex_info all_server_mutexes[]= { @@ -9204,7 +9206,8 @@ static PSI_mutex_info all_server_mutexes { &key_LOG_INFO_lock, "LOG_INFO::lock", 0}, { &key_LOCK_thread_count, "LOCK_thread_count", PSI_FLAG_GLOBAL}, { &key_LOCK_log_throttle_qni, "LOCK_log_throttle_qni", PSI_FLAG_GLOBAL}, - { &key_gtid_ensure_index_mutex, "Gtid_state", PSI_FLAG_GLOBAL} + { &key_gtid_ensure_index_mutex, "Gtid_state", PSI_FLAG_GLOBAL}, + { &key_LOCK_thread_created, "LOCK_thread_created", PSI_FLAG_GLOBAL } }; PSI_rwlock_key key_rwlock_LOCK_grant, key_rwlock_LOCK_logger, === modified file 'sql/mysqld.h' --- a/sql/mysqld.h 2012-11-14 12:08:59 +0000 +++ b/sql/mysqld.h 2012-12-06 12:22:21 +0000 @@ -340,6 +340,7 @@ extern PSI_mutex_key key_RELAYLOG_LOCK_s extern PSI_mutex_key key_RELAYLOG_LOCK_sync_queue; extern PSI_mutex_key key_LOCK_sql_rand; extern PSI_mutex_key key_gtid_ensure_index_mutex; +extern PSI_mutex_key key_LOCK_thread_created; extern PSI_rwlock_key key_rwlock_LOCK_grant, key_rwlock_LOCK_logger, key_rwlock_LOCK_sys_init_connect, key_rwlock_LOCK_sys_init_slave, No bundle (reason: useless for push emails).