• Marko Mäkelä's avatar
    MDEV-14441 InnoDB hangs when setting innodb_adaptive_hash_index=OFF during UPDATE · 3fdd3907
    Marko Mäkelä authored
    This race condition is a regression caused by MDEV-12121.
    
    btr_cur_update_in_place(): Determine block->index!=NULL only once
    in order to determine whether an adaptive hash index bucket needs
    to be exclusively locked and unlocked.
    
    If we evaluated block->index multiple times, and the adaptive hash
    index was disabled before we locked the adaptive hash index, then
    we would never release the adaptive hash index bucket latch, which
    would eventually lead to InnoDB hanging.
    3fdd3907
btr0cur.cc 223 KB