mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-37215 SELECT FOR UPDATE crash in SERIALIZABLE
ha_innobase::store_lock(): Set also trx->will_lock when starting
a transaction at SERIALIZABLE isolation level. This fixes up
commit 7fbbbc983f
(MDEV-36330).
This commit is contained in:
@@ -283,4 +283,13 @@ COMMIT;
|
||||
disconnect consistent;
|
||||
connection default;
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# MDEV-37215 SELECT...FOR UPDATE crash under SERIALIZABLE
|
||||
#
|
||||
SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
SELECT * FROM t1 FOR UPDATE;
|
||||
a
|
||||
DROP TABLE t1;
|
||||
SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
|
||||
# End of 10.6 tests
|
||||
|
Reference in New Issue
Block a user