lock_tables_lost_commit.test 468 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# This is a test for bug 578

connect (con1,localhost,root,,);
connect (con2,localhost,root,,);

connection con1;
drop table if exists t1;
create table t1(a int) type=innodb;
lock tables t1 write;
insert into t1 values(10);
disconnect con1;

connection con2;
# The bug was that, because of the LOCK TABLES, the handler "forgot" to commit,
# and the other commit when we write to the binlog was not done because of
# binlog-ignore-db  
select * from t1;
drop table t1;