EVOLUTION-MANAGER
Edit File: fast_upsert_deadlock.result
set tokudb_enable_fast_upsert=1; set session sql_mode=(select replace(@@sql_mode,'STRICT_TRANS_TABLES','')); set session sql_mode=(select replace(@@sql_mode,'STRICT_ALL_TABLES','')); create table t (id bigint primary key, b bigint not null default 0) engine = tokudb; SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES','')); SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'STRICT_ALL_TABLES','')); set tokudb_enable_fast_upsert=1; begin; insert into t (id) values (1) on duplicate key update b=b+1; begin; insert into t (id) values (2) on duplicate key update b=b-1; insert into t (id) values (2) on duplicate key update b=b+1; insert into t (id) values (1) on duplicate key update b=b-1; Got one of the listed errors rollback; commit; select * from t; id b 1 0 2 0 drop table t;