1 # Test for BUG#7658 "optimize crashes slave thread (1 in 1000)]"
3 source include/master-slave.inc;
5 create table t1 (a int not null auto_increment primary key, b int, key(b));
6 INSERT INTO t1 (a) VALUES (1),(2);
7 # Now many OPTIMIZE to test if we crash (BUG#7658)
13 eval OPTIMIZE TABLE t1;
19 # Bug was that slave segfaulted after ~ a hundred of OPTIMIZE (or ANALYZE)
20 sync_slave_with_master;
23 --source include/rpl_end.inc