Added test case for MDEV-13029

MDEV 13029 Assertion `ds_control' failed in debug_sync upon closing connection
after creating temporary sequence

This test doesn't fail anymore. Adding it to ensure that the bug doesn't
appear again.
This commit is contained in:
Monty 2018-05-08 13:29:29 +03:00
parent bd09c5ca86
commit a536664e80
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1 @@
--debug-sync-timeout=2

View file

@ -0,0 +1,7 @@
connect con1,localhost,root,,;
CREATE TEMPORARY SEQUENCE f ENGINE=InnoDB;
disconnect con1;
connection default;
SELECT 'Still alive' AS `Heartbeat`;
Heartbeat
Still alive

View file

@ -0,0 +1,15 @@
--source include/have_innodb.inc
--source include/have_debug_sync.inc
#
# MDEV-13029
# Assertion `ds_control' failed in debug_sync upon closing connection after
# creating temporary sequence
--connect (con1,localhost,root,,)
CREATE TEMPORARY SEQUENCE f ENGINE=InnoDB;
--disconnect con1
--connection default
--sleep 3
SELECT 'Still alive' AS `Heartbeat`;