• Sergey Vojtovich's avatar
    MDEV-15059 - Misc small InnoDB scalability fixes · 8389b45b
    Sergey Vojtovich authored
    Moved mutex locking inside lock_rec_lock().
    Moved monitor increment out of mutex.
    Moved assertions that don't require protection out of mutex.
    Removed duplicate assertions.
    Moved duplicate debug injections into lock_rec_lock().
    Let monitor updates use relaxed memory order.
    Return directly without maintaining variables in lock_rec_lock_slow().
    Moved lock_rec_lock_fast() body into lock_rec_lock(): saves at least one
    trx_mutex_enter(), one switch() plus some code was moved out of mutex.
    8389b45b
srv0mon.h 30.8 KB