mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5955 Server crashes in handler::ha_external_lock or assertion `m_lock_type == 2' fails in handler::ha_close on disconnect with a locked temporary table
first unlock locked tables, then close and remove temporary
This commit is contained in:
2
mysql-test/r/locked_temporary-5955.result
Normal file
2
mysql-test/r/locked_temporary-5955.result
Normal file
@ -0,0 +1,2 @@
|
||||
CREATE TEMPORARY TABLE tmp (i INT) ENGINE=InnoDB;
|
||||
LOCK TABLES tmp AS p WRITE;
|
10
mysql-test/t/locked_temporary-5955.test
Normal file
10
mysql-test/t/locked_temporary-5955.test
Normal file
@ -0,0 +1,10 @@
|
||||
#
|
||||
# MDEV-5955 Server crashes in handler::ha_external_lock or assertion `m_lock_type == 2' fails in handler::ha_close on disconnect with a locked temporary table
|
||||
#
|
||||
|
||||
--source include/have_innodb.inc
|
||||
--connect (con1,localhost,root,,)
|
||||
CREATE TEMPORARY TABLE tmp (i INT) ENGINE=InnoDB;
|
||||
LOCK TABLES tmp AS p WRITE;
|
||||
--disconnect con1
|
||||
|
Reference in New Issue
Block a user