mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
bdb-deadlock test: added reap commands
This commit is contained in:
parent
7e7939ee03
commit
fc54b13799
2 changed files with 6 additions and 4 deletions
|
@ -9,23 +9,23 @@ set autocommit=0;
|
|||
update t2 set x = 1 where id = 0;
|
||||
select x from t1 where id = 0;
|
||||
select x from t2 where id = 0;
|
||||
commit;
|
||||
Deadlock found when trying to get lock; Try restarting transaction
|
||||
commit;
|
||||
x
|
||||
1
|
||||
commit;
|
||||
select * from t1;
|
||||
id x
|
||||
0 1
|
||||
select * from t2;
|
||||
id x
|
||||
0 1
|
||||
commit;
|
||||
select * from t1;
|
||||
id x
|
||||
0 1
|
||||
select * from t1;
|
||||
select * from t2;
|
||||
id x
|
||||
0 1
|
||||
commit;
|
||||
id x
|
||||
0 1
|
||||
drop table t1,t2;
|
||||
|
|
|
@ -35,9 +35,11 @@ select x from t2 where id = 0;
|
|||
|
||||
connection con2;
|
||||
--error 1213
|
||||
reap;
|
||||
commit;
|
||||
|
||||
connection con1;
|
||||
reap;
|
||||
commit;
|
||||
|
||||
connection con2;
|
||||
|
|
Loading…
Reference in a new issue