mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	"LOAD DATA INFILE is badly filtered by binlog-*-db rules". There will probably be a second final one to merge Dmitri's changes to rpl_log.result and mine. 2 new tests: rpl_loaddata_rule_m : test of logging of LOAD DATA INFILE when the master has binlog-*-db rules, rpl_loaddata_rule_s : test of logging of LOAD DATA INFILE when the slave has binlog-*-db rules and --log-slave-updates.
		
			
				
	
	
		
			21 lines
		
	
	
		
			620 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			620 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# 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
 | 
						|
show binlog events from 79; # should be nothing
 |