mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	 f3b577f591
			
		
	
	f3b577f591
	
	
	
		
			
			(especially in case of bug like BUG#6732 "FLUSH TABLES WITH READ LOCK + COMMIT makes next FLUSH...LOCK hang forever").
		
			
				
	
	
		
			10 lines
		
	
	
		
			238 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			238 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| drop table if exists t1;
 | |
| create table t1 (kill_id int);
 | |
| insert into t1 values(connection_id());
 | |
|  flush tables with read lock;
 | |
| select ((@id := kill_id) - kill_id) from t1;
 | |
| ((@id := kill_id) - kill_id)
 | |
| 0
 | |
| kill connection @id;
 | |
| drop table t1;
 |