diff options
author | guilhem@mysql.com <> | 2003-03-02 18:20:32 +0100 |
---|---|---|
committer | guilhem@mysql.com <> | 2003-03-02 18:20:32 +0100 |
commit | 49788cf2e1f301d5a60fd335cb3d97771e8da642 (patch) | |
tree | eb0da9678b0effb42639922c1e79e2289dac4ba9 /mysql-test/t/rpl_loaddatalocal.test | |
parent | d77cd3835d2445d4ce22301bbbbabdff9e791f99 (diff) | |
download | mariadb-git-49788cf2e1f301d5a60fd335cb3d97771e8da642.tar.gz |
ChangeSet 1.1625 was faulty as regards sql/mf_iocache.cc and LOAD DATA LOCAL replication tests
Diffstat (limited to 'mysql-test/t/rpl_loaddatalocal.test')
-rw-r--r-- | mysql-test/t/rpl_loaddatalocal.test | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_loaddatalocal.test b/mysql-test/t/rpl_loaddatalocal.test index e69de29bb2d..70f4ab96b6a 100644 --- a/mysql-test/t/rpl_loaddatalocal.test +++ b/mysql-test/t/rpl_loaddatalocal.test @@ -0,0 +1,36 @@ +# See if "LOAD DATA LOCAL INFILE" is well replicated +# (LOAD DATA LOCAL INFILE is not written to the binlog +# the same way as LOAD DATA INFILE : Append_blocks are smaller). +# In MySQL 4.0 <4.0.12 there were 2 bugs with LOAD DATA LOCAL INFILE : +# - the loaded file was not written entirely to the master's binlog, +# only the first 4KB, 8KB or 16KB usually. +# - the loaded file's first line was not written entirely to the +# master's binlog (1st char was absent) +source include/master-slave.inc; + +create table t1(a int); +let $1=10000; +disable_query_log; +set SQL_LOG_BIN=0; +while ($1) +{ +#eval means expand $ expressions + eval insert into t1 values(1); + dec $1; +} +set SQL_LOG_BIN=1; +enable_query_log; +select * into outfile '../../var/master-data/rpl_loaddatalocal.select_outfile' from t1; +#This will generate a 20KB file, now test LOAD DATA LOCAL +truncate table t1; +load data local infile './var/master-data/rpl_loaddatalocal.select_outfile' into table t1; +system rm ./var/master-data/rpl_loaddatalocal.select_outfile ; +save_master_pos; +connection slave; +sync_with_master; +select a,count(*) from t1 group by a; +connection master; +drop table t1; +save_master_pos; +connection slave; +sync_with_master; |