Debian Codegraph @

mysql-test/suite/innodb/t/page_reorganize.test

raw
1 --source include/have_innodb.inc
2 --source include/have_innodb_16k.inc
3 --source include/have_debug.inc
4
5 --source include/count_sessions.inc
6
7 --echo #
8 --echo # Bug# 20005279 ASSERT !OTHER_LOCK, LOCK_MOVE_REORGANIZE_PAGE()
9 --echo #
10
11 create table t1 (f1 int auto_increment primary key,
12 f2 char(255)) engine=innodb;
13
14 let $inc = 50;
15
16 start transaction;
17 --disable_query_log
18
19 while ($inc)
20 {
21 insert into t1(f2) values (repeat('~', 50));
22 dec $inc;
23 }
24
25 --enable_query_log
26 commit;
27
28 start transaction;
29 select f1, f2 from t1 where f1 = 20 for update;
30
31 connect (con1,localhost,root,,);
32 --send
33 select f1 from t1 where f1 = 20 for update;
34
35 connection default;
36
37 let $wait_condition=
38 select count(*) = 1 from information_schema.processlist
39 where INFO = 'select f1 from t1 where f1 = 20 for update';
40
41 --source include/wait_condition.inc
42
43 SET @save_dbug = @@debug_dbug;
44 SET DEBUG_DBUG = '+d,do_page_reorganize,do_lock_reverse_page_reorganize';
45 insert into t1(f2) values (repeat('+', 100));
46 SET DEBUG_DBUG = @save_dbug;
47 commit;
48
49 connection con1;
50 reap;
51 disconnect con1;
52 connection default;
53
54 drop table t1;
55
56 --echo #
57 --echo # MDEV-27993 Assertion failed in btr_page_reorganize_low()
58 --echo #
59 CREATE TABLE t1(a INT PRIMARY KEY, b INT UNIQUE) ENGINE=InnoDB;
60 SET DEBUG_DBUG = '+d,do_page_reorganize';
61 INSERT INTO t1 VALUES(0,0);
62 DROP TABLE t1;
63
64 --source include/wait_until_count_sessions.inc