| 1 |
# Test for BUG#7658 "optimize crashes slave thread (1 in 1000)]" |
| 2 |
|
| 3 |
source include/master-slave.inc; |
| 4 |
|
| 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) |
| 8 |
let $1=300; |
| 9 |
disable_query_log; |
| 10 |
disable_result_log; |
| 11 |
while ($1) |
| 12 |
{ |
| 13 |
eval OPTIMIZE TABLE t1; |
| 14 |
dec $1; |
| 15 |
} |
| 16 |
enable_result_log; |
| 17 |
enable_query_log; |
| 18 |
drop table t1; |
| 19 |
# Bug was that slave segfaulted after ~ a hundred of OPTIMIZE (or ANALYZE) |
| 20 |
sync_slave_with_master; |
| 21 |
|
| 22 |
# End of 4.1 tests |
| 23 |
--source include/rpl_end.inc |