#At file:///media/sdb2/hezx/work/mysql/bzrwork/b41613/6.0-rpl/
2815 He Zhenxing 2009-02-26
BUG#41613 Slave I/O status inconsistent between SHOW SLAVE STATUS and START SLAVE
There are three internal status for slave I/O thread, both
MYSQL_SLAVE_RUN_NOT_CONNECT and MYSQL_SLAVE_NOT_RUN are reported
as 'No' for Slave_IO_running of command SHOW SLAVE STATUS.
Change MYSQL_SLAVE_RUN_NOT_CONNECT to be reported as 'Connecting'.
modified:
sql/slave.cc
per-file messages:
sql/slave.cc
Change MYSQL_SLAVE_RUN_NOT_CONNECT to be reported as 'Connecting'
=== modified file 'sql/slave.cc'
--- a/sql/slave.cc 2009-02-04 12:35:46 +0000
+++ b/sql/slave.cc 2009-02-26 07:22:18 +0000
@@ -1448,7 +1448,8 @@ bool show_master_info(THD* thd, Master_i
protocol->store((ulonglong) mi->rli.group_relay_log_pos);
protocol->store(mi->rli.group_master_log_name, &my_charset_bin);
protocol->store(mi->slave_running == MYSQL_SLAVE_RUN_CONNECT ?
- "Yes" : "No", &my_charset_bin);
+ "Yes" : (mi->slave_running == MYSQL_SLAVE_RUN_NOT_CONNECT ?
+ "Connecting" : "No"), &my_charset_bin);
protocol->store(mi->rli.slave_running ? "Yes":"No", &my_charset_bin);
protocol->store(rpl_filter->get_do_db());
protocol->store(rpl_filter->get_ignore_db());
| Thread |
|---|
| • bzr commit into mysql-6.0-rpl branch (zhenxing.he:2815) Bug#41613 | He Zhenxing | 26 Feb |