diff options
author | Luis Soares <luis.soares@oracle.com> | 2011-05-11 15:16:17 +0100 |
---|---|---|
committer | Luis Soares <luis.soares@oracle.com> | 2011-05-11 15:16:17 +0100 |
commit | f38dff9809f69ece0c07aaa3a01aa6643df37976 (patch) | |
tree | 6bd41937ca3706c20d30c60480a43f3c565a775e | |
parent | d4f1d04fa51c65efa92f0d6bc91d425a141ce22b (diff) | |
parent | b2ec8249d5ef5a5252012024cd0ca8181031f0ff (diff) | |
download | mariadb-git-f38dff9809f69ece0c07aaa3a01aa6643df37976.tar.gz |
BUG#12416700
Automerged bzr bundle from bug report into latest mysql-5.5.
-rw-r--r-- | mysql-test/include/wait_show_condition.inc | 15 | ||||
-rw-r--r-- | mysql-test/suite/rpl/r/rpl_show_slave_hosts.result | 3 | ||||
-rw-r--r-- | mysql-test/suite/rpl/t/rpl_show_slave_hosts.test | 5 |
3 files changed, 18 insertions, 5 deletions
diff --git a/mysql-test/include/wait_show_condition.inc b/mysql-test/include/wait_show_condition.inc index 68e05ce4644..ae1600a7e30 100644 --- a/mysql-test/include/wait_show_condition.inc +++ b/mysql-test/include/wait_show_condition.inc @@ -31,6 +31,21 @@ # Created: 2009-02-18 mleich # +if (!$condition) +{ + --die ERROR IN TEST: the "condition" variable must be set +} + +if (!$field) +{ + --die ERROR IN TEST: the "field" variable must be set +} + +if (!$show_statement) +{ + --die ERROR IN TEST: the "show_statement" variable must be set +} + let $max_run_time= 30; if ($wait_timeout) { diff --git a/mysql-test/suite/rpl/r/rpl_show_slave_hosts.result b/mysql-test/suite/rpl/r/rpl_show_slave_hosts.result index 107cd8f63cc..2ada5670e04 100644 --- a/mysql-test/suite/rpl/r/rpl_show_slave_hosts.result +++ b/mysql-test/suite/rpl/r/rpl_show_slave_hosts.result @@ -8,8 +8,7 @@ SHOW SLAVE HOSTS; Server_id Host Port Master_id 3 slave2 DEFAULT_PORT 1 2 SLAVE_PORT 1 -STOP SLAVE IO_THREAD; -include/wait_for_slave_io_to_stop.inc +include/stop_slave_io.inc SHOW SLAVE HOSTS; Server_id Host Port Master_id 2 SLAVE_PORT 1 diff --git a/mysql-test/suite/rpl/t/rpl_show_slave_hosts.test b/mysql-test/suite/rpl/t/rpl_show_slave_hosts.test index eb2e883847f..105f1873659 100644 --- a/mysql-test/suite/rpl/t/rpl_show_slave_hosts.test +++ b/mysql-test/suite/rpl/t/rpl_show_slave_hosts.test @@ -23,14 +23,13 @@ connection master; let $show_statement= SHOW SLAVE HOSTS; let $field= Server_id; # 3 is server_id of slave2. -let $connection= ='3'; +let $condition= ='3'; source include/wait_show_condition.inc; --replace_result $SLAVE_MYPORT SLAVE_PORT $DEFAULT_MASTER_PORT DEFAULT_PORT SHOW SLAVE HOSTS; connection slave2; -STOP SLAVE IO_THREAD; -source include/wait_for_slave_io_to_stop.inc; +--source include/stop_slave_io.inc connection master; let $show_statement= SHOW SLAVE HOSTS; |