mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			633 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			633 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# Testing if "flush logs" command bouncing resulting in logs created in a loop 
 | 
						|
# in case of bi-directional replication
 | 
						|
 | 
						|
source include/master-slave.inc
 | 
						|
 | 
						|
connection slave;
 | 
						|
--replace_result $MASTER_MYPORT MASTER_PORT
 | 
						|
eval change master to master_host='127.0.0.1',master_user='root',
 | 
						|
 master_password='',master_port=$MASTER_MYPORT;
 | 
						|
slave start;
 | 
						|
connection master;
 | 
						|
slave stop;
 | 
						|
--replace_result $SLAVE_MYPORT SLAVE_PORT
 | 
						|
eval change master to master_host='127.0.0.1',master_user='root',
 | 
						|
 master_password='',master_port=$SLAVE_MYPORT;
 | 
						|
slave start;
 | 
						|
sleep 5;
 | 
						|
flush logs;
 | 
						|
sleep 5;
 | 
						|
--replace_result $SLAVE_MYPORT SLAVE_PORT
 | 
						|
show slave status;
 |