Debian Codegraph @

mysql-test/suite/stress/t/deadlock_drop_table.test

raw
1 --source include/have_debug.inc
2 --source include/have_debug_sync.inc
3
4 create or replace table t1 (a int primary key, b int, c int, key(b),key(c)) engine=myisam;
5 insert into t1 (a) values(1);
6
7 set debug_sync='RESET';
8 connect (con1, localhost, root,,);
9 connect (con2, localhost, root,,);
10 connection default;
11
12 backup stage start;
13 backup stage flush;
14 select * from t1;
15 set debug_sync='after_purge_tables SIGNAL parked WAIT_FOR go';
16 set debug_sync='before_tc_release_table SIGNAL parked2 WAIT_FOR go2';
17 --send backup stage BLOCK_DDL
18 --connection con1
19 set debug_sync='now WAIT_FOR parked';
20 select * from t1;
21 set debug_sync='now SIGNAL go';
22 set debug_sync='now WAIT_FOR parked2';
23 set debug_sync='before_wait_for_refs SIGNAL waiting WAIT_FOR go3';
24 --send drop table t1;
25 --connection con2
26 set debug_sync='now WAIT_FOR waiting';
27 set debug_sync='now SIGNAL go2';
28 set debug_sync='now SIGNAL go3';
29
30 --connection default
31 --reap
32 --connection con1
33 --reap
34 connection default;
35 disconnect con1;
36 disconnect con2;
37 set debug_sync='RESET';