~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/lock_tables_lost_commit.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test for Bug#578 mysqlimport -l silently fails when binlog-ignore-db is set
 
2
 
 
3
--source include/have_innodb.inc
 
4
 
 
5
# Save the initial number of concurrent sessions
 
6
--source include/count_sessions.inc
 
7
 
 
8
connect (con1,localhost,root,,);
 
9
connect (con2,localhost,root,,);
 
10
 
 
11
connection con1;
 
12
--disable_warnings
 
13
DROP TABLE IF EXISTS t1;
 
14
CREATE TABLE t1(a INT) ENGINE=innodb;
 
15
--enable_warnings
 
16
LOCK TABLES t1 WRITE;
 
17
INSERT INTO t1 VALUES(10);
 
18
disconnect con1;
 
19
 
 
20
connection con2;
 
21
# The bug was that, because of the LOCK TABLES, the handler "forgot" to commit,
 
22
# and the other commit when we write to the binlog was not done because of
 
23
# binlog-ignore-db
 
24
SELECT * FROM t1;
 
25
DROP TABLE t1;
 
26
 
 
27
connection default;
 
28
disconnect con2;
 
29
 
 
30
# End of 4.1 tests
 
31
 
 
32
# Wait till we reached the initial number of concurrent sessions
 
33
--source include/wait_until_count_sessions.inc