summaryrefslogtreecommitdiff
path: root/mysql-test/extra/rpl_tests/rpl_failed_optimize.test
blob: cd81f2497b8ec4d6d86e9b556b9dee0fa17c5c45 (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
-- source include/master-slave.inc

#
# BUG#5551 "Failed OPTIMIZE TABLE is logged to binary log"
# Replication should work when OPTIMIZE TABLE timeouts, and 
# when OPTIMIZE TABLE is executed on a non-existing table
#

eval CREATE TABLE t1 ( a int ) ENGINE=$engine_type;
BEGIN;
INSERT INTO t1 VALUES (1);

connection master1;
OPTIMIZE TABLE t1;

OPTIMIZE TABLE non_existing;  
sync_slave_with_master;

# End of 4.1 tests

connection master;
select * from t1;
commit;
drop table t1;
-- sync_slave_with_master