mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
MDEV-34690 lock_rec_unlock_unmodified() causes deadlock
Post-push fix: row_vers_impl_x_locked() must be invoked under unlatched lock_sys, the corresponding assertion was removed in MDEV-34466 and was not restored in MDEV-34690. This fix restores it.
This commit is contained in:
parent
066f920484
commit
3734ff7c7e
1 changed files with 4 additions and 0 deletions
|
@ -402,6 +402,10 @@ row_vers_impl_x_locked(
|
|||
const rec_t* clust_rec;
|
||||
dict_index_t* clust_index;
|
||||
|
||||
/* The function must not be invoked under lock_sys latch to prevert
|
||||
latching orded violation, i.e. page latch must be acquired before
|
||||
lock_sys latch */
|
||||
lock_sys.assert_unlocked();
|
||||
/* The current function can be called from lock_rec_unlock_unmodified()
|
||||
under lock_sys.wr_lock() */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue