Percona XtraDB Storage Engine for MySQL

buf_flush_LRU_recommendation() is too optimistic

Reported by Yasufumi Kinoshita on 2010-01-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona-XtraDB
Fix Released
High
Unassigned
Percona patches
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.

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  Edit
Everyone can see this information.

Other bug subscribers