summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb/t/innodb_bug27216817.test
blob: a93932b4a04da7315eefd1cb8158173045ce70d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# BUG#27216817: INNODB: FAILING ASSERTION:
#               PREBUILT->TABLE->N_MYSQL_HANDLES_OPENED == 1
#

source include/have_innodb.inc;
create table t1 (a int not null, b int not null) engine=innodb;
insert t1 values (1,2),(3,4);

lock table t1 write, t1 tr read;
flush status;
alter table t1 add primary key (b);
show status like 'Handler_read_rnd_next';
unlock tables;
alter table t1 drop primary key;

lock table t1 write;
flush status;
alter table t1 add primary key (b);
show status like 'Handler_read_rnd_next';
unlock tables;
alter table t1 drop primary key;

flush status;
alter table t1 add primary key (b);
show status like 'Handler_read_rnd_next';

drop table t1;