mariadb/storage/innobase/buf
Jan Lindström 7e71dfa9f5 MDEV-6933: Spurious lock_wait_timeout_thread wakeup in lock_wait_suspend_thread()
Merged Facebooks commit 6e06bbfa315ffb97d713dd6e672d6054036ddc21
authored by Inaam Rana from https://github.com/facebook/mysql-5.6.

Fixes MySQL bug http://bugs.mysql.com/bug.php?id=72123

lock_timeout thread works in a tight loop waking up every second
and checking for lock_wait_timeout. In addition, when a mysql
thread is forced to wait on a lock, it signals the lock_timeout thread
as well. This call is not required. In a heavily contended workload
each thread going to wait will signal the lock_timeout thread making
it work all the time. As lock_timeout thread scans the array of
waiting threads under lock_sys::wait_mutex which is already very
hot in contneded loads, these extra scans can cause significanct
performance regression.

Also, in various codepaths lock_timeout thread is signalled where
actual intention was to signal the innodb monitor thread.
2014-10-24 17:56:04 +03:00
..
buf0buddy.cc innodb 5.6.17 2014-05-07 17:32:23 +02:00
buf0buf.cc InnoDB 5.6.20 2014-09-11 16:42:54 +02:00
buf0checksum.cc Temporary commit of merge of MariaDB 10.0-base and MySQL 5.6 2012-08-01 17:27:34 +03:00
buf0dblwr.cc innodb 5.6.17 2014-05-07 17:32:23 +02:00
buf0dump.cc Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
buf0flu.cc innodb-5.6.19 2014-08-06 20:05:10 +02:00
buf0lru.cc MDEV-6933: Spurious lock_wait_timeout_thread wakeup in lock_wait_suspend_thread() 2014-10-24 17:56:04 +03:00
buf0rea.cc MDEV-5574 Set AUTO_INCREMENT below max value of column. 2014-02-01 09:33:26 +01:00