• Marko Mäkelä's avatar
    MDEV-32530 Race condition in lock_wait_rpl_report() · b78b77e7
    Marko Mäkelä authored
    After acquiring lock_sys.latch, always load trx->lock.wait_lock.
    It could have changed by another thread that did lock_rec_move()
    and released lock_sys.latch right before lock_sys.wr_lock_try()
    succeeded.
    
    This regression was introduced in
    commit e039720b (MDEV-32096).
    
    Reviewed by: Vladislav Lesin
    b78b77e7
lock0lock.cc 210 KB