mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Refactor the innodb_bug38231 mysql-test to conform with the
newly introduced metadata locks. Previously the behavior was deterministic and if several LOCKs were waiting the first one of them was released by UNLOCK (in chronological order). Now (with MDLs) the behavior is undefined and since we do not know in what order to --reap the connections we simply disconnect them without reaping.
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
SET storage_engine=InnoDB;
|
||||
INSERT INTO bug38231 VALUES (1), (10), (300);
|
||||
INSERT INTO bug38231_2 VALUES (1), (10), (300);
|
||||
SET autocommit=0;
|
||||
SELECT * FROM bug38231 FOR UPDATE;
|
||||
SELECT * FROM bug38231_2 FOR UPDATE;
|
||||
a
|
||||
1
|
||||
10
|
||||
300
|
||||
TRUNCATE TABLE bug38231;
|
||||
TRUNCATE TABLE bug38231_2;
|
||||
COMMIT;
|
||||
DROP TABLE bug38231;
|
||||
DROP TABLE bug38231_2;
|
||||
|
Reference in New Issue
Block a user