• Marko Mäkelä's avatar
    MDEV-23456 fixup: Fix mtr_t::get_fix_count() · c26eae0c
    Marko Mäkelä authored
    Before commit 05fa4558 (MDEV-22110)
    we have slot->type == MTR_MEMO_MODIFY that are unrelated to
    incrementing the buffer-fix count.
    
    FindBlock::operator(): In debug builds, skip MTR_MEMO_MODIFY entries.
    
    Also, simplify the code a little.
    
    This fixes an infinite loop in the tests
    innodb.innodb_defragment and innodb.innodb_wl6326_big.
    c26eae0c
mtr0mtr.cc 23.7 KB