mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-10792: Assertion `thd->mdl_context.is_lock_owner ..
.. (MDL_key::TABLE, table->db, table->table_name, MDL_SHARED)' failed in mysql_rm_table_no_locks Reset error flag after temporary table has been successfully dropped.
This commit is contained in:
@ -538,5 +538,13 @@ UNLOCK TABLES;
|
|||||||
ALTER TABLE t1 RENAME t2, LOCK SHARED;
|
ALTER TABLE t1 RENAME t2, LOCK SHARED;
|
||||||
ALTER TABLE t2 RENAME t1, LOCK EXCLUSIVE;
|
ALTER TABLE t2 RENAME t1, LOCK EXCLUSIVE;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
#
|
||||||
|
# MDEV-10792: Assertion `thd->mdl_context.is_lock_owner
|
||||||
|
# (MDL_key::TABLE, table->db, table->table_name, MDL_SHARED)'
|
||||||
|
# failed in mysql_rm_table_no_locks
|
||||||
|
#
|
||||||
|
CREATE TEMPORARY TABLE t1 (i INT);
|
||||||
|
DROP TABLE nonexisting_table, t1;
|
||||||
|
ERROR 42S02: Unknown table 'temp_db.nonexisting_table'
|
||||||
# Cleanup
|
# Cleanup
|
||||||
DROP DATABASE temp_db;
|
DROP DATABASE temp_db;
|
||||||
|
@ -583,6 +583,15 @@ ALTER TABLE t2 RENAME t1, LOCK EXCLUSIVE;
|
|||||||
|
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-10792: Assertion `thd->mdl_context.is_lock_owner
|
||||||
|
--echo # (MDL_key::TABLE, table->db, table->table_name, MDL_SHARED)'
|
||||||
|
--echo # failed in mysql_rm_table_no_locks
|
||||||
|
--echo #
|
||||||
|
CREATE TEMPORARY TABLE t1 (i INT);
|
||||||
|
--error ER_BAD_TABLE_ERROR
|
||||||
|
DROP TABLE nonexisting_table, t1;
|
||||||
|
|
||||||
--echo # Cleanup
|
--echo # Cleanup
|
||||||
DROP DATABASE temp_db;
|
DROP DATABASE temp_db;
|
||||||
|
|
||||||
|
@ -2299,6 +2299,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
|
|||||||
error= 1;
|
error= 1;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
error= 0;
|
||||||
table->table= 0;
|
table->table= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user