diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2014-06-25 15:17:03 +0200 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2014-06-25 15:17:03 +0200 |
commit | 86362129a2f70349cc79adb0825d5bc8f9a61f27 (patch) | |
tree | 85d72a6ee651f847400b98e8f1016b74dc51460e /sql/rpl_rli.h | |
parent | 00467e136e5080e8c175019534ad198b7dcc35d3 (diff) | |
download | mariadb-git-86362129a2f70349cc79adb0825d5bc8f9a61f27.tar.gz |
MDEV-6120: When slave stops with error, error message should indicate the failing GTID
If replication breaks in GTID mode, it is not trivial to determine the GTID of
the failing event group. This is a problem, as such GTID is needed eg. to
explicitly set @@gtid_slave_pos to skip to after that event group, or to
compare errors on different servers, etc.
Fix by ensuring that relevant slave errors logged to the error log include the
GTID of the event group containing the problem event.
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r-- | sql/rpl_rli.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h index 63791a6389c..00d16f52488 100644 --- a/sql/rpl_rli.h +++ b/sql/rpl_rli.h @@ -593,6 +593,8 @@ struct rpl_group_info */ time_t row_stmt_start_timestamp; bool long_find_row_note_printed; + /* Needs room for "Gtid D-S-N\x00". */ + char gtid_info_buf[5+10+1+10+1+20+1]; rpl_group_info(Relay_log_info *rli_); ~rpl_group_info(); @@ -681,6 +683,7 @@ struct rpl_group_info void slave_close_thread_tables(THD *); void mark_start_commit_no_lock(); void mark_start_commit(); + char *gtid_info(); time_t get_row_stmt_start_timestamp() { |