~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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/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