mariadb/mysql-test/suite
Vlad Lesin 18fa00a54c MDEV-32272 lock_release_on_prepare_try() does not release lock if supremum bit is set along with other bits set in lock's bitmap
The error is caused by MDEV-30165 fix with the following commit:
d13a57ae81

There is logical error in lock_release_on_prepare_try():

        if (supremum_bit)
          lock_rec_unlock_supremum(*cell, lock);
        else
          lock_rec_dequeue_from_page(lock, false);

Because there can be other bits set in the lock's bitmap, and the lock
type can be suitable for releasing criteria, but the above logic
releases only supremum bit of the lock.

The fix is to release lock if it suits for releasing criteria and unlock
supremum if supremum is locked otherwise.

Tere is also the test for the case, which was reported by QA team. I
placed it in a separate files, because it requires debug build.

Reviewed by: Marko Mäkelä
2023-10-13 16:29:04 +03:00
..
archive Merge 10.5 into 10.6 2023-09-11 14:46:39 +03:00
atomic Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
binlog MDEV-32257 dangling XA-rollback in binlog from emtpy XA in pseudo_slave_mode 2023-09-29 15:54:09 +03:00
binlog_encryption MDEV-31655: Parallel replication deadlock victim preference code errorneously removed 2023-08-15 16:35:30 +02:00
client
compat Merge 10.5 into 10.6 2023-09-11 14:46:39 +03:00
csv
encryption MDEV-31098 InnoDB Recovery doesn't display encryption message when no encryption configuration passed 2023-10-13 17:27:27 +05:30
engines Merge 10.5 into 10.6 2023-04-11 16:15:19 +03:00
federated Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
funcs_1 Merge 10.5 into 10.6 2023-10-06 14:34:01 +03:00
funcs_2 Merge 10.5 into 10.6 2023-01-03 18:13:11 +02:00
galera Fix merge commit 5ea5291: No test file or result files should be executable 2023-10-09 03:28:45 +11:00
galera_3nodes Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
galera_3nodes_sr Merge 10.5 into 10.6 2023-04-11 16:15:19 +03:00
galera_sr Merge 10.5 into 10.6 2023-09-14 15:25:53 +03:00
gcol Merge 10.5 into 10.6 2023-09-20 08:32:04 +03:00
handler Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
heap Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
innodb MDEV-32272 lock_release_on_prepare_try() does not release lock if supremum bit is set along with other bits set in lock's bitmap 2023-10-13 16:29:04 +03:00
innodb_fts Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
innodb_gis Merge 10.5 into 10.6 2023-09-11 14:46:39 +03:00
innodb_i_s Merge 10.5 into 10.6 2023-04-11 16:15:19 +03:00
innodb_zip Merge 10.5 into 10.6 2023-09-11 14:46:39 +03:00
jp Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
json MDEV-28480: Assertion `0' failed in Item_row::illegal_method_call on 2022-10-13 14:55:27 +05:30
large_tests
maria Merge branch '10.5' into 10.6 2023-08-04 07:52:54 +02:00
mariabackup Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
mtr/t
mtr2
multi_source
optimizer_unfixed_bugs MDEV-29710: Disable some slow tests on Valgrind 2022-10-06 08:42:26 +03:00
parts Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
perfschema Merge 10.5 into 10.6 2023-09-19 10:47:26 +03:00
perfschema_stress
period Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
plugins Merge 10.5 into 10.6 2023-09-14 15:25:53 +03:00
roles Merge 10.5 into 10.6 2023-09-19 10:47:26 +03:00
rpl Merge 10.5 into 10.6 2023-10-06 14:34:01 +03:00
s3 Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00
sql_sequence Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
storage_engine
stress Revert test changes from "Fixed debug_sync timeout in deadlock_drop_table" 2023-02-03 16:27:16 +02:00
sys_vars Change SEL_ARG::MAX_SEL_ARGS to a user defined variable optimizer_max_sel_args 2023-10-03 08:25:31 +03:00
sysschema Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
unit
vcol MDEV-9938 Prepared statement return wrong result (missing row) 2023-08-15 21:41:01 +03:00
versioning Merge branch '10.5' into 10.6 2023-08-01 15:08:52 +02:00
wsrep Merge 10.5 into 10.6 2023-01-03 18:13:11 +02:00