mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	 55fb16a7a6
			
		
	
	55fb16a7a6
	
	
	
		
			
			and fixing it another way (per Monty; a simpler solution which does not increase the number of binlog events is to always execute DROP TEMPORARY TABLE IF EXISTS on slave). A new test rpl_drop_temp. 2) fixing BUG#8436 "Multiple "stacked" SQL statements cause replication to stop" by setting thd->query_length to the length of the query being executed, not counting the next queries if this is a multi-query. Should also improve display of SHOW PROCESSLIST. A new test rpl_multi_query.
		
			
				
	
	
		
			14 lines
		
	
	
		
			371 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			371 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| source include/master-slave.inc;
 | |
| --disable_warnings
 | |
| create database if not exists mysqltest;
 | |
| --enable_warnings
 | |
| 
 | |
| create temporary table mysqltest.t1 (n int);
 | |
| create temporary table mysqltest.t2 (n int);
 | |
| sync_slave_with_master;
 | |
| connection master;
 | |
| disconnect master;
 | |
| connection slave;
 | |
| --real_sleep 3; # time for DROP to be written
 | |
| show status like 'Slave_open_temp_tables';
 |