summaryrefslogtreecommitdiff
path: root/mysql-test/suite/parts/t/truncate_locked.test
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-07-16 15:12:38 +0200
committerSergei Golubchik <serg@mariadb.org>2018-07-19 11:35:39 +0200
commitd57ddaa1904d3c2f08460c539c72652f0c78c09a (patch)
tree72b53c0f274266155092317fad413fe667dde58f /mysql-test/suite/parts/t/truncate_locked.test
parent5c744bb5350acbf2d3abce28d01fc829c4f2375c (diff)
downloadmariadb-git-d57ddaa1904d3c2f08460c539c72652f0c78c09a.tar.gz
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
only use HA_EXTRA_PREPARE_FOR_DROP when the table is going to be dropped
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 00000000000..4ff1016fb05
--- /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;
+