Commit 4e667b96 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-27877 considerably speed up innodb_force_recovery test

decrease innodb_lock_wait_timeout for the current session.
parent 73c391af
...@@ -113,7 +113,7 @@ SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; ...@@ -113,7 +113,7 @@ SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
select * from t2; select * from t2;
f1 f2 f1 f2
1 2 1 2
SET GLOBAL innodb_lock_wait_timeout=1; SET SESSION innodb_lock_wait_timeout=1;
insert into t2 values(1,2); insert into t2 values(1,2);
ERROR HY000: Lock wait timeout exceeded; try restarting transaction ERROR HY000: Lock wait timeout exceeded; try restarting transaction
insert into t2 values(9,10); insert into t2 values(9,10);
......
...@@ -162,7 +162,7 @@ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; ...@@ -162,7 +162,7 @@ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
select * from t2; select * from t2;
SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
select * from t2; select * from t2;
SET GLOBAL innodb_lock_wait_timeout=1; SET SESSION innodb_lock_wait_timeout=1;
--error ER_LOCK_WAIT_TIMEOUT --error ER_LOCK_WAIT_TIMEOUT
insert into t2 values(1,2); insert into t2 values(1,2);
insert into t2 values(9,10); insert into t2 values(9,10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment