2003-08-20 23:24:45 +02:00
|
|
|
# See if the slave logs (in its own binlog, with --log-slave-updates) a
|
|
|
|
# replicated LOAD DATA INFILE correctly when it has binlog_*_db rules.
|
|
|
|
# This is for BUG#1100 (LOAD DATA INFILE was half-logged).
|
|
|
|
|
|
|
|
source include/master-slave.inc;
|
|
|
|
connection slave;
|
|
|
|
reset master;
|
|
|
|
|
|
|
|
connection master;
|
|
|
|
# 'test' is the current database
|
|
|
|
create table t1(a int, b int, unique(b));
|
|
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
|
|
|
|
|
|
|
|
# Test logging on slave;
|
|
|
|
|
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
|
|
|
select count(*) from t1; # check that LOAD was replicated
|
2005-03-16 02:32:47 +01:00
|
|
|
show binlog events from 98; # should be nothing
|
2005-07-28 02:22:47 +02:00
|
|
|
|
|
|
|
# End of 4.1 tests
|