1create table t (a int primary key, b int) engine=tokudb;
2insert into t values (1,0);
3set session transaction isolation level read committed;
4begin;
5select * from t where a=1 for update;
6a	b
71	0
8update t set b=b+1 where a=1;
9connect conn1,localhost,root;
10set session tokudb_lock_timeout=60000;
11set session transaction isolation level read committed;
12begin;
13select * from t where a=1 for update;
14connection default;
15commit;
16connection conn1;
17a	b
181	1
19update t set b=b+1 where a=1;
20select * from t;
21a	b
221	2
23commit;
24connection default;
25disconnect conn1;
26drop table t;
27