Commit 8acf951e authored by Andrei Elkin's avatar Andrei Elkin

WL#342 heartbeat

Improving an error report generating.
parent a029813b
...@@ -1233,11 +1233,10 @@ when it try to get the value of TIME_ZONE global variable from master."; ...@@ -1233,11 +1233,10 @@ when it try to get the value of TIME_ZONE global variable from master.";
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)) && !check_io_slave_killed(mi->io_thd, mi, NULL))
{ {
errmsg= "The slave I/O thread stops because querying master with '%s' " errmsg= "The slave I/O thread stops because SET @master_heartbeat_period "
"failed; error: '%s' "; "on master failed.";
err_code= ER_SLAVE_FATAL_ERROR; err_code= ER_SLAVE_FATAL_ERROR;
sprintf(err_buff, "%s Error: %s", errmsg, sprintf(err_buff, "%s Error: %s", errmsg, mysql_error(mysql));
query, mysql_error(mysql));
mysql_free_result(mysql_store_result(mysql)); mysql_free_result(mysql_store_result(mysql));
goto err; goto err;
} }
......
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