~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_sporadic_master.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
#############################################################
 
2
# 2006-02-07 By JBM added order by
 
3
#############################################################
 
4
# test to see if replication can continue when master sporadically fails on
 
5
# COM_BINLOG_DUMP and additionally limits the number of events per dump
 
6
 
 
7
source include/master-slave.inc;
 
8
 
 
9
create table t2(n int);
 
10
create table t1(n int not null auto_increment primary key);
 
11
insert into t1 values (NULL),(NULL);
 
12
truncate table t1;
 
13
# We have to use 4 in the following to make this test work with all table types
 
14
insert into t1 values (4),(NULL);
 
15
sync_slave_with_master;
 
16
stop slave;
 
17
start slave;
 
18
connection master;
 
19
insert into t1 values (NULL),(NULL);
 
20
flush logs;
 
21
truncate table t1;
 
22
insert into t1 values (10),(NULL),(NULL),(NULL),(NULL),(NULL);
 
23
sync_slave_with_master;
 
24
select * from t1 ORDER BY n;
 
25
connection master;
 
26
drop table t1,t2;
 
27
sync_slave_with_master;
 
28
 
 
29
# End of 4.1 tests