| 1 |
# Test for BUG#7658 "optimize crashes slave thread (1 in 1000)]" |
| 2 |
|
| 3 |
source include/no_valgrind_without_big.inc; |
| 4 |
source include/master-slave.inc; |
| 5 |
|
| 6 |
create table t1 (a int not null auto_increment primary key, b int, key(b)); |
| 7 |
INSERT INTO t1 (a) VALUES (1),(2); |
| 8 |
# Now many OPTIMIZE to test if we crash (BUG#7658) |
| 9 |
let $1=300; |
| 10 |
disable_query_log; |
| 11 |
disable_result_log; |
| 12 |
while ($1) |
| 13 |
{ |
| 14 |
eval OPTIMIZE TABLE t1; |
| 15 |
dec $1; |
| 16 |
} |
| 17 |
enable_result_log; |
| 18 |
enable_query_log; |
| 19 |
drop table t1; |
| 20 |
# Bug was that slave segfaulted after ~ a hundred of OPTIMIZE (or ANALYZE) |
| 21 |
--source include/sync_slave_sql_with_master.inc |
| 22 |
|
| 23 |
# End of 4.1 tests |
| 24 |
--source include/rpl_end.inc |