mariadb/storage/innobase/lock
Vlad Lesin 8128a46827 MDEV-28709 unexpected X lock on Supremum in READ COMMITTED
The lock is created during page splitting after moving records and
locks(lock_move_rec_list_(start|end)()) to the new page, and inheriting
the locks to the supremum of left page from the successor of the infimum
on right page.

There is no need in such inheritance for READ COMMITTED isolation level
and not-gap locks, so the fix is to add the corresponding condition in
gap lock inheritance function.

One more fix is to forbid gap lock inheritance if XA was prepared. Use the
most significant bit of trx_t::n_ref to indicate that gap lock inheritance
is forbidden. This fix is based on
mysql/mysql-server@b063e52a83
2022-10-25 00:52:10 +03:00
..
lock0iter.cc
lock0lock.cc MDEV-28709 unexpected X lock on Supremum in READ COMMITTED 2022-10-25 00:52:10 +03:00
lock0prdt.cc Merge remote-tracking branch 'origin/10.4' into 10.5 2022-09-14 16:24:51 +04:00
lock0wait.cc MDEV-23328 Server hang due to Galera lock conflict resolution 2021-10-29 20:40:35 +02:00