Debian Codegraph @

mysql-test/suite/rpl/include/rpl_failed_optimize.test

raw
1 -- source include/master-slave.inc
2
3 #
4 # BUG#5551 "Failed OPTIMIZE TABLE is logged to binary log"
5 # Replication should work when when OPTIMIZE TABLE is
6 # executed on a non-existing table.
7 #
8 # Due to patch for BUG#989, checking that an OPTIMIZE
9 # that fails due to a lock wait timeout on an InnoDB table
10 # is not valid anymore, as an mdl lock is hit before,
11 # thence no timeout occurs, but instead a deadlock.
12 #
13
14
15 eval CREATE TABLE t1 ( a int ) ENGINE=$engine_type;
16 BEGIN;
17 INSERT INTO t1 VALUES (1);
18
19 connection master1;
20 OPTIMIZE TABLE non_existing;
21 sync_slave_with_master;
22
23 connection master;
24 select * from t1;
25 commit;
26 drop table t1;
27
28 --source include/rpl_end.inc