Debian Codegraph @

mysql-test/suite/innodb/r/alter_mdl_timeout.result

raw
1 create table t1(f1 char(10), f2 char(10) not null, f3 int not null,
2 f4 int not null, primary key(f3))engine=innodb;
3 insert into t1 values('a','a', 1, 1), ('b','b', 2, 2), ('c', 'c', 3, 3), ('d', 'd', 4, 4);
4 SET DEBUG_SYNC="row_merge_after_scan SIGNAL con1_start WAIT_FOR con1_insert";
5 SET DEBUG_SYNC="innodb_commit_inplace_alter_table_wait SIGNAL con1_wait WAIT_FOR con1_update";
6 ALTER TABLE t1 ADD UNIQUE INDEX(f1(3), f4), ADD UNIQUE INDEX(f2), ALGORITHM=INPLACE;
7 connect con1,localhost,root,,,;
8 SET DEBUG_SYNC="now WAIT_FOR con1_start";
9 begin;
10 INSERT INTO t1 VALUES('e','e',5, 5);
11 SET DEBUG_SYNC="now SIGNAL con1_insert";
12 SET DEBUG_SYNC="now WAIT_FOR con1_wait";
13 SET DEBUG_SYNC="after_row_upd_clust SIGNAL con1_update WAIT_FOR alter_rollback";
14 UPDATE t1 set f4 = 10 order by f1 desc limit 2;
15 connection default;
16 ERROR HY000: Lock wait timeout exceeded; try restarting transaction
17 SET DEBUG_SYNC="now SIGNAL alter_rollback";
18 connection con1;
19 commit;
20 connection default;
21 disconnect con1;
22 DROP TABLE t1;
23 SET DEBUG_SYNC="RESET";