Commit 55edfd50 authored by unknown's avatar unknown

BUG#21123 (Slave fails to reconnect on update_slave_list):

 Fixing comments and adding error message if slave fails to register
 on master.


sql/slave.cc:
  Failing to register on master is a fatal error.
parent 716e9b91
...@@ -2016,13 +2016,14 @@ pthread_handler_t handle_slave_io(void *arg) ...@@ -2016,13 +2016,14 @@ pthread_handler_t handle_slave_io(void *arg)
{ {
/* /*
Register ourselves with the master. Register ourselves with the master.
If fails, this is not fatal - we just print the error message and go
on with life.
*/ */
thd->proc_info = "Registering slave on master"; thd->proc_info = "Registering slave on master";
if (register_slave_on_master(mysql)) if (register_slave_on_master(mysql))
{
sql_print_error("Slave I/O thread couldn't register on master");
goto err; goto err;
} }
}
DBUG_PRINT("info",("Starting reading binary log from master")); DBUG_PRINT("info",("Starting reading binary log from master"));
while (!io_slave_killed(thd,mi)) while (!io_slave_killed(thd,mi))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment