mariadb/storage
Vlad Lesin 2d259187a2 MDEV-26206 gap lock is not set if implicit lock exists
If lock type is LOCK_GAP or LOCK_ORDINARY, and the transaction holds
implicit lock for the record, then explicit gap-lock will not be set for
the record, as lock_rec_convert_impl_to_expl() returns true and
lock_rec_convert_impl_to_expl() bypasses lock_rec_lock() call.

The fix converts explicit lock to implicit one if requested lock type is
not LOCK_REC_NOT_GAP.

innodb_information_schema test result is also changed as after the fix
the following statements execution:

SET autocommit=0;
INSERT INTO t1 VALUES (5,10);
SELECT * FROM t1 FOR UPDATE;

leads to additional gap lock requests.
2021-08-17 16:09:55 +03:00
..
archive MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-27 00:50:55 +10:00
blackhole Merge branch '10.2' into 10.3 2020-10-30 17:23:53 +01:00
cassandra MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-27 00:50:55 +10:00
connect Merge branch '10.2' into 10.3 2021-07-29 13:51:02 +02:00
csv MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-27 00:50:55 +10:00
example Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
federated MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-27 00:50:55 +10:00
federatedx MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-27 00:50:55 +10:00
heap MDEV-21373 DBUG compilation - bad synchronization in ha_heap::external_lock() 2021-06-04 15:02:48 +02:00
innobase MDEV-26206 gap lock is not set if implicit lock exists 2021-08-17 16:09:55 +03:00
maria Merge 10.2 into 10.3 2021-06-21 09:07:40 +03:00
mroonga Merge branch '10.2' into 10.3 2021-07-29 13:51:02 +02:00
myisam Merge 10.2 into 10.3 2021-06-21 09:07:40 +03:00
myisammrg Merge branch '10.2' into 10.3 2020-08-03 13:41:29 +02:00
oqgraph Merge 10.2 into 10.3 2021-07-27 10:47:17 +03:00
perfschema Merge branch bb-10.2-release into bb-10.3-release 2021-05-04 14:49:31 +03:00
rocksdb Merge 10.2 into 10.3 2021-07-22 18:57:54 +03:00
sequence MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-27 00:50:55 +10:00
sphinx MDEV-17556 Assertion `bitmap_is_set_all(&table->s->all_set)' failed 2021-01-27 00:50:55 +10:00
spider MDEV-24523 Execution of JSON_REPLACE failed on Spider 2021-08-05 12:21:59 +09:00
test_sql_discovery MDEV-19632 Replication aborts with ER_SLAVE_CONVERSION_FAILED upon CREATE ... SELECT in ORACLE mode 2020-08-01 07:43:50 +04:00
tokudb Merge 10.2 into 10.3 2021-07-27 10:47:17 +03:00