~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_many_optimize.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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