mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Test for bug 578. And a comment in slave.cc.
sql/slave.cc: Comment to remember that size of relay logs on disk is not the total size of the relay log.
This commit is contained in:
8
mysql-test/r/lock_tables_lost_commit.result
Normal file
8
mysql-test/r/lock_tables_lost_commit.result
Normal file
@ -0,0 +1,8 @@
|
||||
drop table if exists t1;
|
||||
create table t1(a int) type=innodb;
|
||||
lock tables t1 write;
|
||||
insert into t1 values(10);
|
||||
select * from t1;
|
||||
a
|
||||
10
|
||||
drop table t1;
|
1
mysql-test/t/lock_tables_lost_commit-master.opt
Normal file
1
mysql-test/t/lock_tables_lost_commit-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--binlog-ignore-db=test innodb
|
18
mysql-test/t/lock_tables_lost_commit.test
Normal file
18
mysql-test/t/lock_tables_lost_commit.test
Normal file
@ -0,0 +1,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;
|
Reference in New Issue
Block a user