• Marko Mäkelä's avatar
    Backport an InnoDB Bug #58815 (Bug #11765812) work-around from mysql-trunk: · 34e5d474
    Marko Mäkelä authored
    ------------------------------------------------------------
    revno 2876.244.305
    revision id marko.makela@oracle.com-20110413082211-e6ouhjz5rmqxcqap
    parent  marko.makela@oracle.com-20110413075948-kvytmc37ye1nt7d9
    committer  Marko Mäkelä <marko.makela@oracle.com>
    branch nick 5.6-innodb
    timestamp Wed 2011-04-13 11:22:11 +0300
    message:
      Suppress the Bug #58815 (Bug #11765812) assertion failure.
    
      buf_page_get_gen(): Introduce BUF_GET_POSSIBLY_FREED for suppressing the
      check that the file page must not have been freed.
    
      btr_estimate_n_rows_in_range_on_level(): Pass BUF_GET_POSSIBLY_FREED and
      explain in the comments why this is needed and why it should be mostly
      harmless to ignore the problem. If InnoDB had always initialized all
      unused fields in data files, no problem would exist.
    
      This change does not fix the bug, it just "shoots the messenger".
    
      rb:647 approved by Jimmy Yang
    34e5d474
btr0cur.c 148 KB