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:
@ -52,8 +52,9 @@ public:
|
||||
code, but can contain more information), in
|
||||
printf() format.
|
||||
*/
|
||||
void report(loglevel level, int err_code, const char *msg, ...) const
|
||||
ATTRIBUTE_FORMAT(printf, 4, 5);
|
||||
void report(loglevel level, int err_code, const char *extra_info,
|
||||
const char *msg, ...) const
|
||||
ATTRIBUTE_FORMAT(printf, 5, 6);
|
||||
|
||||
/**
|
||||
Clear errors. They will not show up under <code>SHOW SLAVE
|
||||
|
Reference in New Issue
Block a user