Skip to content

Commit

Permalink
Test case for MDEV-12887 (bug fixed long ago)
Browse files Browse the repository at this point in the history
MDEV-12887 UT_LIST_GET_LEN(trx->lock.trx_locks) == 0 when mysqldump
sequence
  • Loading branch information
montywi committed Feb 19, 2018
1 parent 278c036 commit 06ba07c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mysql-test/suite/sql_sequence/mysqldump.result
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ CREATE TABLE `x1` (
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `x1` VALUES (1,1,9223372036854775806,1,1,1000,0,0);
DROP TABLE a1,t1,x1;
set default_storage_engine=InnoDB;
create sequence t1;
LOCK TABLES t1 READ;
SELECT * FROM t1;
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
1 1 9223372036854775806 1 1 1000 0 0
unlock tables;
drop table t1;
11 changes: 11 additions & 0 deletions mysql-test/suite/sql_sequence/mysqldump.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,14 @@ insert into t1 values (1),(2);
CREATE SEQUENCE x1 engine=innodb;
--exec $MYSQL_DUMP --compact test
DROP TABLE a1,t1,x1;

#
# MDEV-12887 UT_LIST_GET_LEN(trx->lock.trx_locks) == 0 when mysqldump sequence
#

set default_storage_engine=InnoDB;
create sequence t1;
LOCK TABLES t1 READ;
SELECT * FROM t1;
unlock tables;
drop table t1;

0 comments on commit 06ba07c

Please sign in to comment.