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

« back to all changes in this revision

Viewing changes to mysql-test/suite/federated/federated_debug.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
--source include/have_debug.inc
 
2
--source federated.inc
 
3
 
 
4
--echo #
 
5
--echo # Bug#47525: MySQL crashed (Federated)
 
6
--echo #
 
7
 
 
8
connection slave;
 
9
--echo # Switch to slave
 
10
CREATE TABLE t1(a INT);
 
11
INSERT INTO t1 VALUES (1);
 
12
 
 
13
connection master;
 
14
--echo # Switch to master
 
15
--replace_result $SLAVE_MYPORT SLAVE_PORT
 
16
eval CREATE TABLE t1(a INT) ENGINE=FEDERATED
 
17
  CONNECTION='mysql://root@127.0.0.1:$SLAVE_MYPORT/test/t1';
 
18
 
 
19
SELECT * FROM t1;
 
20
 
 
21
--echo # Start a asynchronous reload
 
22
--exec $MYSQLADMIN --no-defaults -S $MASTER_MYSOCK -P $MASTER_MYPORT  -u root --password= refresh 2>&1
 
23
 
 
24
--echo # Wait for tables to be closed
 
25
let $show_statement= SHOW STATUS LIKE 'Open_tables';
 
26
let $field= Value;
 
27
let $condition= = '0';
 
28
--source include/wait_show_condition.inc
 
29
 
 
30
--echo # Ensure that the server didn't crash
 
31
SELECT * FROM t1;
 
32
--echo # Drop tables on master and slave
 
33
DROP TABLE t1;
 
34
connection slave;
 
35
DROP TABLE t1;
 
36
 
 
37
connection default;
 
38
--echo # Federated cleanup
 
39
source federated_cleanup.inc;