1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
Kristian Nielsen
2014-06-25 15:17:03 +02:00
parent 00467e136e
commit 86362129a2
14 changed files with 268 additions and 106 deletions

View File

@ -30,6 +30,7 @@
class Relay_log_info;
class Log_event;
struct rpl_group_info;
/**
A table definition from the master.
@ -187,7 +188,7 @@ public:
@retval 0 if the table definition is compatible with @c table
*/
#ifndef MYSQL_CLIENT
bool compatible_with(THD *thd, Relay_log_info *rli, TABLE *table,
bool compatible_with(THD *thd, rpl_group_info *rgi, TABLE *table,
TABLE **conv_table_var) const;
/**
@ -212,7 +213,8 @@ public:
@return A pointer to a temporary table with memory allocated in the
thread's memroot, NULL if the table could not be created
*/
TABLE *create_conversion_table(THD *thd, Relay_log_info *rli, TABLE *target_table) const;
TABLE *create_conversion_table(THD *thd, rpl_group_info *rgi,
TABLE *target_table) const;
#endif