mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 43c36b3c88
			
		
	
	
	43c36b3c88
	
	
	
		
			
			Problem was that in case of INSERT DELAYED thd->query() is freed before we call trans_rollback where WSREP_DEBUG could access thd->query() in wsrep_thd_query(). Fix is to reset thd->query() to NULL in delayed_insert destructor after it is freed. There is already null guard at wsrep_thd_query(). Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			213 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			213 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| --source include/galera_cluster.inc
 | |
| 
 | |
| CREATE TABLE t (a INT) ENGINE=InnoDB;
 | |
| --error ER_DELAYED_NOT_SUPPORTED
 | |
| INSERT DELAYED INTO t VALUES ();
 | |
| DROP TABLE t;
 | |
| 
 | |
| --error ER_NO_SUCH_TABLE
 | |
| INSERT DELAYED t1 () VALUES ();
 |