Commit 65e73b56 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-24382 Assertion in tdc_remove_table

The assert is no more reproducible in the lastest 10.5-10.6

The patch only adds testcase from MDEV-24382.
parent 3f4b7ed9
......@@ -520,3 +520,18 @@ DROP TABLE t1;
#
# End of 10.2 tests
#
#
# MDEV-24382 Assertion `thd->mdl_context.is_lock_owner(MDL_key::TABLE, db, table_name, MDL_EXCLUSIVE)'
# failed in tdc_remove_table
#
CREATE TABLE t (c INT);
LOCK TABLES t READ LOCAL;
CREATE TEMPORARY TABLE t (a INT) SELECT 1 AS a;
DROP SEQUENCE t;
ERROR 42S02: Unknown SEQUENCE: 'test.t'
DROP TEMPORARY TABLE t;
UNLOCK TABLES;
DROP TABLE t;
#
# End of 10.5 tests
#
......@@ -633,3 +633,21 @@ DROP TABLE t1;
--echo #
--echo # End of 10.2 tests
--echo #
--echo #
--echo # MDEV-24382 Assertion `thd->mdl_context.is_lock_owner(MDL_key::TABLE, db, table_name, MDL_EXCLUSIVE)'
--echo # failed in tdc_remove_table
--echo #
CREATE TABLE t (c INT);
LOCK TABLES t READ LOCAL;
CREATE TEMPORARY TABLE t (a INT) SELECT 1 AS a;
--error ER_UNKNOWN_SEQUENCES
DROP SEQUENCE t;
DROP TEMPORARY TABLE t;
UNLOCK TABLES;
DROP TABLE t;
--echo #
--echo # End of 10.5 tests
--echo #
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment