MDEV-13935 INSERT stuck at state Unlocking tables
Refactor lock_grant(). With innodb_lock_schedule_algorithm=VATS some callers were passing an incorrect parameter owns_trx_mutex to lock_grant(). lock_grant_after_reset(): Refactored from lock_grant(), without the call to lock_reset_lock_and_trx_wait(). lock_grant_have_trx_mutex(): A variant of lock_grant() where the caller already holds the lock->trx->mutex. The normal lock_grant() will acquire and release lock->trx->mutex. lock_grant(): Define as a wrapper that will acquire lock->trx->mutex.
Showing
Please register or sign in to comment