------------------------------------------------------------ revno: 8780 committer: Laurynas Biveinis branch nick: mysql-5.7-percona-patches timestamp: Tue 2014-11-25 12:24:36 +0200 message: Fix bug http://bugs.mysql.com/bug.php?id=69146 (Needless log flush order mutex acquisition in buf_pool_get_oldest_modification) by removing the redundant locking. diff: === modified file 'storage/innobase/buf/buf0buf.cc' --- storage/innobase/buf/buf0buf.cc 2014-08-26 16:53:24 +0000 +++ storage/innobase/buf/buf0buf.cc 2014-11-25 10:24:36 +0000 @@ -358,10 +358,6 @@ lsn_t lsn = 0; lsn_t oldest_lsn = 0; - /* When we traverse all the flush lists we don't want another - thread to add a dirty page to any flush list. */ - log_flush_order_mutex_enter(); - for (ulint i = 0; i < srv_buf_pool_instances; i++) { buf_pool_t* buf_pool; @@ -393,8 +389,6 @@ } } - log_flush_order_mutex_exit(); - /* The returned answer may be out of date: the flush_list can change after the mutex has been released. */