mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
row_search_for_mysql(): Acquire an intention lock on the table before locking the first record gap.
11 lines
275 B
Plaintext
11 lines
275 B
Plaintext
#
|
|
# Bug #56716 InnoDB locks a record gap without locking the table
|
|
#
|
|
-- source include/have_innodb_plugin.inc
|
|
|
|
CREATE TABLE bug56716 (a INT PRIMARY KEY,b INT,c INT,INDEX(b)) ENGINE=InnoDB;
|
|
|
|
SELECT * FROM bug56716 WHERE b<=42 ORDER BY b DESC FOR UPDATE;
|
|
|
|
DROP TABLE bug56716;
|