buf_flush_LRU_recommendation() is too optimistic

Bug #506894 reported by Yasufumi Kinoshita
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona patches
Fix Released
High
Unassigned
Percona-XtraDB
Fix Released
High
Unassigned

Bug Description

buf_flush_LRU_recommendation() is counted without LRU_mutex, currently.
If buf_flush_LRU_recommendation() returns some non-zero value, buf_flush_batch(BUF_FLUSH_LRU.. is called using the value.

So, buf_flush_LRU_recommendation() should not return wrong value for optimistic performance.

buf_flush_LRU_recommendation() should count blocks again with LRU_mutex obtaining, if the return value may not be zero.

Related branches

Changed in percona-xtradb:
status: New → Confirmed
importance: Undecided → High
Changed in percona-patches:
status: New → Confirmed
importance: Undecided → High
Changed in percona-patches:
status: Confirmed → Fix Committed
Changed in percona-xtradb:
status: Confirmed → Fix Committed
Changed in percona-patches:
status: Fix Committed → Fix Released
Changed in percona-xtradb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.