summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/parts/t/truncate_locked.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/parts/t/truncate_locked.test')
-rw-r--r--mysql-test/suite/parts/t/truncate_locked.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/suite/parts/t/truncate_locked.test b/mysql-test/suite/parts/t/truncate_locked.test
new file mode 100644
index 00000000..4ff1016f
--- /dev/null
+++ b/mysql-test/suite/parts/t/truncate_locked.test
@@ -0,0 +1,10 @@
+#
+# MDEV-15551 Server hangs or assertion `strcmp(share->unique_file_name,filename) || share->last_version' fails in test_if_reopen or unexpected ER_LOCK_DEADLOCK
+#
+--source include/have_partition.inc
+create table t1 (i int) engine=myisam partition by hash(i) partitions 2 ;
+lock table t1 write;
+truncate table t1;
+desc t1;
+drop table t1;
+