~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_loaddata_fatal.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
source include/have_binlog_format_mixed_or_statement.inc;
 
2
source include/have_debug.inc;
 
3
source include/master-slave.inc;
 
4
 
 
5
# We do this little stunt to make sure that the slave has started
 
6
# before we stop it again.
 
7
connection master;
 
8
CREATE TABLE t1 (a INT, b INT);
 
9
INSERT INTO t1 VALUES (1,10);
 
10
sync_slave_with_master;
 
11
source include/show_slave_status.inc;
 
12
 
 
13
# Now we feed it a load data infile, which should make it stop with a
 
14
# fatal error.
 
15
connection master;
 
16
LOAD DATA INFILE '../std_data_ln/rpl_loaddata.dat' INTO TABLE t1;
 
17
 
 
18
connection slave;
 
19
wait_for_slave_to_stop;
 
20
source include/show_slave_status.inc;
 
21
 
 
22
connection slave;
 
23
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
 
24
START SLAVE;
 
25
 
 
26
connection master;
 
27
DROP TABLE t1;
 
28
sync_slave_with_master;
 
29