mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
22 lines
450 B
Text
22 lines
450 B
Text
|
#
|
||
|
# Testing of potential problems in Aria with locking
|
||
|
#
|
||
|
|
||
|
-- source include/have_maria.inc
|
||
|
|
||
|
drop table if exists t1,t2;
|
||
|
|
||
|
#
|
||
|
# Test for Bug#973039
|
||
|
# Assertion `share->in_trans == 0' failed in maria_close on DROP TABLE
|
||
|
# under LOCK
|
||
|
#
|
||
|
|
||
|
CREATE TABLE t1 (i INT) ENGINE=Aria;
|
||
|
CREATE TABLE t2 (i INT) ENGINE=Aria;
|
||
|
LOCK TABLE t1 WRITE, t2 WRITE;
|
||
|
# Also fails with FLUSH TABLE t1 and with REPAIR TABLE t1 USE_FRM
|
||
|
DROP TABLE t1;
|
||
|
UNLOCK TABLES;
|
||
|
DROP TABLE t2;
|