~mysql/mysql-server/5.5

Viewing all changes in revision 4177.

  • Committer: Satya Bodapati
  • Date: 2013-01-28 14:43:44 UTC
  • Revision ID: satya.bodapati@oracle.com-20130128144344-45fazzjml586tb04
Bug#16183892 - INNODB PURGE BUFFERING IS NOT CRASH-SAFE

With innodb_change_buffering enabled, Innodb buffers
all modifications to secondary index leaf pages when
the leaf pages are not in buffer pool.

Crash InnoDB while an IBUF_OP_DELETE is being applied.
Restart and note that the same record can be applied
again which may lead to crash.

Mark the change buffer record processed, so that it will
not be merged again in case the server crashes between
the following mtr_commit() and the subsequent mtr_commit()
of deleting the change buffer record.

Testcase: No testcase because it is difficult to get the
timing right with the two asyncronous task purge and change
buffering

Approved by Marko. rb#1893

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: