From: Date: January 7 2008 6:11pm Subject: bk commit into 5.1 tree (aelkin:1.2827) BUG#32003 List-Archive: http://lists.mysql.com/commits/40651 X-Bug: 32003 Message-Id: <200801071711.m07HBKPm017368@koti.dsl.inet.fi> Below is the list of changes that have just been committed into a local 5.1 repository of aelkin. When aelkin does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2008-01-07 19:11:12+02:00, aelkin@stripped +1 -0 bug#32003 rpl.rpl_server_id2 can cause extraneous errors recorded in error log the error printed in the slave error log is due to master's dump thread was killed in the middle of slave connecting as it should be because of the tests' logics. However, printing the error was not necessary as it's expectable not to be able to connect to a killed master. Fixed with introducing a condition for printing the error that previously was introduced by bug#29976. sql/slave.cc@stripped, 2008-01-07 19:11:05+02:00, aelkin@stripped +3 -2 adding a condition to print an error only if the thread was not killed. diff -Nrup a/sql/slave.cc b/sql/slave.cc --- a/sql/slave.cc 2007-12-18 08:32:30 +02:00 +++ b/sql/slave.cc 2008-01-07 19:11:05 +02:00 @@ -955,7 +955,8 @@ static int get_master_version_and_clock( llstr((ulonglong) (mi->heartbeat_period*1000000000UL), llbuf); my_sprintf(query, (query, query_format, llbuf)); - if (mysql_real_query(mysql, query, strlen(query))) + if (mysql_real_query(mysql, query, strlen(query)) + && !check_io_slave_killed(mi->io_thd, mi, NULL)) { err_msg.append("The slave I/O thread stops because querying master with '"); err_msg.append(query); @@ -977,7 +978,7 @@ err: sql_print_error(err_msg.ptr()); DBUG_RETURN(1); } - + DBUG_RETURN(0); }