mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	 05e5a35bf2
			
		
	
	05e5a35bf2
	
	
	
		
			
			Now the I/O thread (in flush_master_info()) flushes the relay log to disk after reading every event. Slower but provides additionnal safety in case of brutal crash. I had to make the flush optional (i.e. add a if(some_bool_argument) in the function) because sometimes flush_master_info() is called when there is no usable relay log (the relay log's IO_CACHE is not initialized so can't be flushed).
		
			
				
	
	
		
			24 lines
		
	
	
		
			621 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			621 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # See if the master logs LOAD DATA INFILE correctly when binlog_*_db rules
 | |
| # exist.
 | |
| # This is for BUG#1100 (LOAD DATA INFILE was half-logged).
 | |
| 
 | |
| source include/master-slave.inc;
 | |
| 
 | |
| --disable_warnings
 | |
| drop database if exists mysqltest;
 | |
| --enable_warnings
 | |
| 
 | |
| connection slave;
 | |
| stop slave; # don't need slave for this test
 | |
| 
 | |
| # Test logging on master
 | |
| 
 | |
| connection master;
 | |
| # 'test' is the current database
 | |
| create database mysqltest;
 | |
| create table t1(a int, b int, unique(b));
 | |
| use mysqltest;
 | |
| load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
 | |
| show binlog events from 79; # should be nothing
 | |
| drop database mysqltest;
 |