1create table t (a int primary key, b int) ENGINE=TokuDB; 2insert into t values (1,0); 3insert into t values (2,1); 4insert into t values (3,2); 5set session transaction isolation level repeatable read; 6begin; 7select * from t lock in share mode; 8a b 91 0 102 1 113 2 12connect conn1,localhost,root; 13set session transaction isolation level repeatable read; 14begin; 15update t set b=b+1 where a=2; 16ERROR HY000: Lock wait timeout exceeded; try restarting transaction 17connection default; 18commit; 19disconnect conn1; 20drop table t; 21