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