mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Test case for MDEV-12887 (bug fixed long ago)
MDEV-12887 UT_LIST_GET_LEN(trx->lock.trx_locks) == 0 when mysqldump sequence
This commit is contained in:
@ -39,3 +39,11 @@ CREATE TABLE `x1` (
|
|||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
INSERT INTO `x1` VALUES (1,1,9223372036854775806,1,1,1000,0,0);
|
INSERT INTO `x1` VALUES (1,1,9223372036854775806,1,1,1000,0,0);
|
||||||
DROP TABLE a1,t1,x1;
|
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;
|
||||||
|
@ -13,3 +13,14 @@ insert into t1 values (1),(2);
|
|||||||
CREATE SEQUENCE x1 engine=innodb;
|
CREATE SEQUENCE x1 engine=innodb;
|
||||||
--exec $MYSQL_DUMP --compact test
|
--exec $MYSQL_DUMP --compact test
|
||||||
DROP TABLE a1,t1,x1;
|
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;
|
||||||
|
Reference in New Issue
Block a user