summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb/t/truncate_crash.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/innodb/t/truncate_crash.test')
-rw-r--r--mysql-test/suite/innodb/t/truncate_crash.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/t/truncate_crash.test b/mysql-test/suite/innodb/t/truncate_crash.test
index 5cb39c745dc..475822dab28 100644
--- a/mysql-test/suite/innodb/t/truncate_crash.test
+++ b/mysql-test/suite/innodb/t/truncate_crash.test
@@ -3,6 +3,7 @@
--source include/have_debug_sync.inc
--source include/not_embedded.inc
+call mtr.add_suppression("InnoDB: \\(\\Too many concurrent transactions\\)\\ writing .*");
FLUSH TABLES;
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1),(2);
@@ -21,3 +22,14 @@ disconnect wait;
SELECT COUNT(*) FROM t1;
TRUNCATE TABLE t1;
DROP TABLE t1;
+
+--echo #
+--echo # MDEV-25663 Double free of transaction during
+--echo # truncate operation
+--echo #
+CREATE TABLE t1 (a INT, b CHAR(12), FULLTEXT KEY(b)) engine=InnoDB;
+SET DEBUG_DBUG='+d,ib_create_table_fail_too_many_trx';
+--error ER_GET_ERRNO
+TRUNCATE table t1;
+SET DEBUG_DBUG='-d,ib_create_table_fail_too_many_trx';
+DROP TABLE t1;