• Marko Mäkelä's avatar
    MDEV-20775: page_zip_validate() failure due to AUTO_INCREMENT · 1d12bff4
    Marko Mäkelä authored
    cmake -DWITH_INNODB_EXTRA_DEBUG:BOOL=ON
    was broken ever since commit 8777458a
    (MDEV-6076 Persistent AUTO_INCREMENT for InnoDB).
    
    There is a race condition between page reads that call
    page_zip_validate() (while holding clustered index root page S-latch)
    and writes that update PAGE_ROOT_AUTO_INC
    (with buf_block_t::lock SX-latch, compatible with S-latch).
    
    page_zip_validate_low(): Skip the PAGE_ROOT_AUTO_INC field on
    clustered index root pages in order to avoid false positives.
    1d12bff4
page0zip.cc 146 KB