1 --source include/have_debug.inc
2 --source suite/federated/include/federated.inc
5 --echo # Bug#47525: MySQL crashed (Federated)
9 --echo # Switch to slave
10 CREATE TABLE t1(a INT);
11 INSERT INTO t1 VALUES (1);
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';
21 --echo # Start a asynchronous reload
22 --exec $MYSQLADMIN --no-defaults -S $MASTER_MYSOCK -P $MASTER_MYPORT -u root --password= refresh 2>&1
24 --echo # Wait for tables to be closed
25 let $show_statement= SHOW STATUS LIKE 'Open_tables';
27 let $condition= = '0';
28 --source include/wait_show_condition.inc
30 --echo # Ensure that the server didn't crash
32 --echo # Drop tables on master and slave
38 --echo # Federated cleanup
39 source suite/federated/include/federated_cleanup.inc;