mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			471 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			471 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| CREATE TABLE t1 (a INT) ENGINE = InnoDB PARTITION BY HASH(a);
 | |
| INSERT INTO t1 VALUES (0), (1), (2);
 | |
| START TRANSACTION;
 | |
| UPDATE t1 SET a = 5 WHERE a = 1;
 | |
| connect  con1, localhost, root,,;
 | |
| # InnoDB lock timeout and monitor thread runs every 15 seconds
 | |
| SET innodb_lock_wait_timeout = 20;
 | |
| START TRANSACTION;
 | |
| UPDATE t1 SET a = 3 WHERE a = 1;
 | |
| ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 | |
| COMMIT;
 | |
| disconnect con1;
 | |
| connection default;
 | |
| COMMIT;
 | |
| DROP TABLE t1;
 | 
