~maria-captains/maria/5.1

Viewing all changes in revision 2502.1195.35.

  • Committer: Marko Mäkelä
  • Date: 2012-08-30 18:53:41 UTC
  • mto: (2502.1198.2 mysql-5.1)
  • mto: This revision was merged to the branch mainline in revision 3164.
  • Revision ID: marko.makela@oracle.com-20120830185341-caiow1pmvh60io1k
Bug#14554000 CRASH IN PAGE_REC_GET_NTH_CONST(NTH=0) DURING COMPRESSED
PAGE SPLIT

page_rec_get_nth_const(): Map nth==0 to the page infimum.

btr_compress(adjust=TRUE): Add a debug assertion for nth>0. The cursor
should never be positioned on the page infimum.

btr_index_page_validate(): Add test instrumentation for checking the
return values of page_rec_get_nth_const() during CHECK TABLE, and for
checking that the page directory slot 0 always contains only one
record, the predefined page infimum record.

page_cur_delete_rec(), page_delete_rec_list_end(): Add debug
assertions guarding against accessing the page slot 0.

page_copy_rec_list_start(): Clarify a comment about ret_pos==0.

rb:1248 approved by Jimmy Yang

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: