1
# test that select for update is executed with serializable isolation
3
SET DEFAULT_STORAGE_ENGINE='tokudb';
6
drop table if exists t;
8
create table t (a int primary key, b int);
9
insert into t values (1,0);
10
set session transaction isolation level repeatable read;
12
# t1 select for update
13
select * from t where a=1 for update;
15
update t set b=b+1 where a=1;
16
connect(conn1,localhost,root);
17
set session transaction isolation level repeatable read;
19
# t2 select for update, should hang until t1 commits
20
send select * from t where a=1 for update;
25
# t2 select for update returns
28
update t set b=b+1 where a=1;