mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-02 02:53:04 +03:00 
			
		
		
		
	Created a test suite 'innodb' under mysql-test/suite/innodb for the innodb plugin tests. test suite 'innodb' has tests only which are not under any other mysql-test suites. Total 14 testcases are added to the test suite. Note: the patches in storage/innodb_plugin/mysql-test/patches are not applied yet
		
			
				
	
	
		
			39 lines
		
	
	
		
			862 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			862 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
set global innodb_lock_wait_timeout=42;
 | 
						|
select @@innodb_lock_wait_timeout;
 | 
						|
@@innodb_lock_wait_timeout
 | 
						|
42
 | 
						|
set innodb_lock_wait_timeout=1;
 | 
						|
select @@innodb_lock_wait_timeout;
 | 
						|
@@innodb_lock_wait_timeout
 | 
						|
1
 | 
						|
select @@innodb_lock_wait_timeout;
 | 
						|
@@innodb_lock_wait_timeout
 | 
						|
42
 | 
						|
set global innodb_lock_wait_timeout=347;
 | 
						|
select @@innodb_lock_wait_timeout;
 | 
						|
@@innodb_lock_wait_timeout
 | 
						|
42
 | 
						|
set innodb_lock_wait_timeout=1;
 | 
						|
select @@innodb_lock_wait_timeout;
 | 
						|
@@innodb_lock_wait_timeout
 | 
						|
1
 | 
						|
select @@innodb_lock_wait_timeout;
 | 
						|
@@innodb_lock_wait_timeout
 | 
						|
347
 | 
						|
create table t1(a int primary key)engine=innodb;
 | 
						|
begin;
 | 
						|
insert into t1 values(1),(2),(3);
 | 
						|
select * from t1 for update;
 | 
						|
commit;
 | 
						|
a
 | 
						|
1
 | 
						|
2
 | 
						|
3
 | 
						|
begin;
 | 
						|
insert into t1 values(4);
 | 
						|
select * from t1 for update;
 | 
						|
commit;
 | 
						|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 | 
						|
drop table t1;
 | 
						|
set global innodb_lock_wait_timeout=50;
 |