mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
19 lines
862 B
Text
19 lines
862 B
Text
--source include/have_metadata_lock_info.inc
|
|
--source include/have_innodb.inc
|
|
|
|
--echo #
|
|
--echo # MDEV-12882 - Assertion `mdl_ticket->m_type == MDL_SHARED_UPGRADABLE ||
|
|
--echo # mdl_ticket->m_type == MDL_SHARED_NO_WRITE ||
|
|
--echo # mdl_ticket->m_type == MDL_SHARED_NO_READ_WRITE ||
|
|
--echo # mdl_ticket->m_type == MDL_SHARED_READ'
|
|
--echo # failed in MDL_context::upgrade_shared_lock
|
|
--echo #
|
|
|
|
CREATE TABLE t1(a INT) ENGINE=InnoDB;
|
|
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
|
|
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
|
UNLOCK TABLES;
|
|
LOCK TABLES t1 AS t2 READ, t1 WRITE CONCURRENT;
|
|
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME FROM information_schema.metadata_lock_info;
|
|
UNLOCK TABLES;
|
|
DROP TABLE t1;
|