#At file:///media/sdb2/hezx/work/mysql/bzrwork/b40459/6.0-rpl-new/
2773 He Zhenxing 2008-12-29
BUG#40459 sporadic failure in rpl_ndb_denote_gap: lost connection during "stop
slave"
When slave failed to set the heartbeat period, it did not set err_code
to a non-zero value, which caused the assertion to fail.
This patch fixed it by setting err_code to ER_SLAVE_FATAL_ERROR in this case.
modified:
sql/slave.cc
per-file messages:
sql/slave.cc
Set err_code when slave failed to set the heartbeat period
=== modified file 'sql/slave.cc'
--- a/sql/slave.cc 2008-12-24 10:48:24 +0000
+++ b/sql/slave.cc 2008-12-29 09:43:32 +0000
@@ -1187,6 +1187,7 @@ static int get_master_version_and_clock(
err_msg.append(mysql_error(mysql));
err_msg.append("'");
mysql_free_result(mysql_store_result(mysql));
+ err_code= ER_SLAVE_FATAL_ERROR;
goto err;
}
mysql_free_result(mysql_store_result(mysql));
| Thread |
|---|
| • bzr commit into mysql-6.0-rpl branch (zhenxing.he:2773) Bug#40459 | He Zhenxing | 29 Dec |