mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
MDEV-16678 followup: Adjust the test main.mdl
We must prevent InnoDB purge from acquiring MDL on the tables. Since MDEV-12288, INSERT is generating work for purge.
This commit is contained in:
parent
30e7a0a866
commit
c3afcc7c0a
2 changed files with 6 additions and 0 deletions
mysql-test/main
|
@ -58,6 +58,8 @@ DROP TABLE t1,t3;
|
|||
#
|
||||
CREATE TABLE t1(a INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t3(a INT) ENGINE=myisam;
|
||||
connect purge_control,localhost,root,,;
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
connect locker,localhost,root,,;
|
||||
connection default;
|
||||
FLUSH TABLES WITH READ LOCK;
|
||||
|
@ -85,6 +87,7 @@ MDL_SHARED_WRITE Table metadata lock test t3
|
|||
unlock tables;
|
||||
connection locker;
|
||||
unlock tables;
|
||||
disconnect purge_control;
|
||||
connection default;
|
||||
disconnect locker;
|
||||
DROP TABLE t1,t3;
|
||||
|
|
|
@ -40,6 +40,8 @@ DROP TABLE t1,t3;
|
|||
|
||||
CREATE TABLE t1(a INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t3(a INT) ENGINE=myisam;
|
||||
connect(purge_control,localhost,root,,);
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
connect (locker,localhost,root,,);
|
||||
connection default;
|
||||
|
||||
|
@ -75,6 +77,7 @@ unlock tables;
|
|||
connection locker;
|
||||
--reap
|
||||
unlock tables;
|
||||
disconnect purge_control;
|
||||
connection default;
|
||||
|
||||
disconnect locker;
|
||||
|
|
Loading…
Add table
Reference in a new issue