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:
Vlad Lesin 2024-10-31 12:15:46 +03:00
parent 066f920484
commit 3734ff7c7e

View file

@ -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() */