mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			675 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			675 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_ln/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 98; # should be nothing
 | 
						|
 | 
						|
connection master;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
# End of 4.1 tests
 |