summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorAndrei Elkin <andrei.elkin@oracle.com>2011-09-30 15:58:02 +0300
committerAndrei Elkin <andrei.elkin@oracle.com>2011-09-30 15:58:02 +0300
commit2788e98ad310d48e430c0c4f1942f3e26924240e (patch)
treed9a4e72a20764191dfd0d21501f4dc6c8fa3b6a6 /sql/sql_repl.cc
parentb3d880392617ae7283eabcd2b8febaefa31480fc (diff)
downloadmariadb-git-2788e98ad310d48e430c0c4f1942f3e26924240e.tar.gz
bug#bug11747416 post-push fixes to correct file name print out.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index c0d9432c71a..a37e8700e4f 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -447,7 +447,7 @@ void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos,
String* packet = &thd->packet;
int error;
const char *errmsg = "Unknown error";
- const char *fmt= "%s; the last event was read from %s at %s, the last byte read was read from %s at %s.";
+ const char *fmt= "%s; the last event was read from '%s' at %s, the last byte read was read from '%s' at %s.";
char llbuff1[22], llbuff2[22];
char error_text[MAX_SLAVE_ERRMSG]; // to be send to slave via my_message()
NET* net = &thd->net;
@@ -1012,13 +1012,18 @@ end:
err:
thd_proc_info(thd, "Waiting to finalize termination");
if (my_errno == ER_MASTER_FATAL_ERROR_READING_BINLOG && my_b_inited(&log))
+ {
/*
detailing the fatal error message with coordinates
of the last position read.
*/
+ char b_start[FN_REFLEN], b_end[FN_REFLEN];
+ fn_format(b_start, coord->file_name, "", "", MY_REPLACE_DIR);
+ fn_format(b_end, log_file_name, "", "", MY_REPLACE_DIR);
my_snprintf(error_text, sizeof(error_text), fmt, errmsg,
- coord->file_name, (llstr(coord->pos, llbuff1), llbuff1),
- log_file_name, (llstr(my_b_tell(&log), llbuff2), llbuff2));
+ b_start, (llstr(coord->pos, llbuff1), llbuff1),
+ b_end, (llstr(my_b_tell(&log), llbuff2), llbuff2));
+ }
else
strcpy(error_text, errmsg);
end_io_cache(&log);