mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 e26c822aa0
			
		
	
	
	e26c822aa0
	
	
	
		
			
			Problem was that the code didn't handle a transaction created in innodb as part of a failed mysql_lock_tables()
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			458 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			458 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| --source include/have_innodb.inc
 | |
| 
 | |
| --echo #
 | |
| --echo # MDEV-16929 Assertion ... in close_thread_tables upon killing connection
 | |
| --echo # running SHOW on sequence
 | |
| --echo #
 | |
| 
 | |
| CREATE SEQUENCE s ENGINE=InnoDB;
 | |
| RENAME TABLE s TO s1;
 | |
| --connect (con1,localhost,root,,test)
 | |
| --let $conid= `SELECT CONNECTION_ID()`
 | |
| --send
 | |
|   SHOW CREATE SEQUENCE s1;
 | |
| --connection default
 | |
| --replace_result $conid thread_id
 | |
| --eval KILL $conid
 | |
| 
 | |
| # Cleanup
 | |
| --connection default
 | |
| drop sequence s1;
 |