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

« back to all changes in this revision

Viewing changes to mysql-test/r/merge-big.result

  • 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
drop table if exists t1,t2,t3,t4,t5,t6;
 
2
#
 
3
# Bug#26379 - Combination of FLUSH TABLE and REPAIR TABLE
 
4
#             corrupts a MERGE table
 
5
# Problem #3
 
6
#
 
7
CREATE TABLE t1 (c1 INT) ENGINE= MyISAM;
 
8
LOCK TABLE t1 WRITE;
 
9
# connection con1
 
10
SET SESSION debug="+d,sleep_open_and_lock_after_open";
 
11
INSERT INTO t1 VALUES (1);
 
12
# connection default
 
13
# Let INSERT go into thr_multi_lock().
 
14
# Kick INSERT out of thr_multi_lock().
 
15
FLUSH TABLES;
 
16
# Let INSERT go through open_tables() where it sleeps.
 
17
# Unlock and close table and wait for con1 to close too.
 
18
FLUSH TABLES;
 
19
# This should give no result.
 
20
SELECT * FROM t1;
 
21
c1
 
22
UNLOCK TABLES;
 
23
# connection con1
 
24
SET SESSION debug="-d,sleep_open_and_lock_after_open";
 
25
# connection default
 
26
DROP TABLE t1;