mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	When the thread executing a DDL was killed after finished its
execution but before writing the binlog event, the error code in
the binlog event could be set wrongly to ER_SERVER_SHUTDOWN or
ER_QUERY_INTERRUPTED.
This patch fixed the problem by ignoring the kill status when
constructing the event for DDL statements.
This patch also included the following changes in order to
provide the test case.
 1) modified mysqltest to support variable for connection command
 2) modified mysql-test-run.pl, add new variable MYSQL_SLAVE to
    run mysql client against the slave mysqld.
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			592 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			592 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
# ==== Purpose ====
 | 
						|
#
 | 
						|
# Diff the output of a statement on master and slave
 | 
						|
#
 | 
						|
# ==== Usage =====
 | 
						|
#
 | 
						|
# let $diff_statement= SELECT * FROM t1 WHERE a < 100;
 | 
						|
# source include/diff_master_slave.inc;
 | 
						|
 | 
						|
--echo source include/diff_master_slave.inc;
 | 
						|
disable_query_log;
 | 
						|
disable_result_log;
 | 
						|
 | 
						|
exec $MYSQL test -e "$diff_statement" > $MYSQLTEST_VARDIR/tmp/diff_master.out;
 | 
						|
sync_slave_with_master;
 | 
						|
exec $MYSQL_SLAVE test -e "$diff_statement" > $MYSQLTEST_VARDIR/tmp/diff_slave.out;
 | 
						|
 | 
						|
diff_files $MYSQLTEST_VARDIR/tmp/diff_master.out $MYSQLTEST_VARDIR/tmp/diff_slave.out;
 | 
						|
 | 
						|
enable_result_log;
 | 
						|
enable_query_log;
 |