summaryrefslogtreecommitdiff
path: root/mysql-test/include/test_fieldsize.inc
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@sun.com>2009-09-29 15:10:37 +0100
committerLuis Soares <luis.soares@sun.com>2009-09-29 15:10:37 +0100
commitb538536718389bcac283d875a7d92527d8ef57be (patch)
treef820e816eb60ffdaafd1ed6f63c89225464a36c7 /mysql-test/include/test_fieldsize.inc
parentb43d30e43a935ec53faea22fb7614550218ad42f (diff)
downloadmariadb-git-b538536718389bcac283d875a7d92527d8ef57be.tar.gz
Bug #30703 SHOW STATUS LIKE 'Slave_running' is not compatible with `SHOW SLAVE
STATUS' NOTE: this is the backport to next-mr. SHOW SHOW STATUS LIKE 'Slave_running' command believes that if active_mi->slave_running != 0, then io thread is running normally. But it isn't so in fact. When some errors happen to make io thread try to reconnect master, then it will become transitional status (MYSQL_SLAVE_RUN_NOT_CONNECT == 1), which also doesn't equal 0. Yet, "SHOW SLAVE STATUS" believes that only if active_mi->slave_running == MYSQL_SLAVE_RUN_CONNECT, then io thread is running. So "SHOW SLAVE STATUS" can get the correct result. Fixed to make SHOW SHOW STATUS LIKE 'Slave_running' command have the same check condition with "SHOW SLAVE STATUS". It only believe that the io thread is running when active_mi->slave_running == MYSQL_SLAVE_RUN_CONNECT.
Diffstat (limited to 'mysql-test/include/test_fieldsize.inc')
-rw-r--r--mysql-test/include/test_fieldsize.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/include/test_fieldsize.inc b/mysql-test/include/test_fieldsize.inc
index cbe63e26318..606bc63779d 100644
--- a/mysql-test/include/test_fieldsize.inc
+++ b/mysql-test/include/test_fieldsize.inc
@@ -22,7 +22,7 @@ eval $test_insert;
connection slave;
START SLAVE;
-wait_for_slave_to_stop;
+--source include/wait_for_slave_sql_to_stop.inc
--replace_result $MASTER_MYPORT MASTER_PORT
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
--query_vertical SHOW SLAVE STATUS