1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix for CONC-659:

When checking for a semi sync indication header, we need also check if
the undocumented session variable @rpl_semi_sync_slave was set.
Otherwise the timestamp of the event could contain values which match
the 2 bytes of the semi sync header.

Since the variable rpl_semi_sync_slave and it's behavior is not documented,
a new option MARIADB_RPL_SEMI_SYNC was added.
This commit is contained in:
Georg Richter
2023-08-11 10:14:26 +02:00
parent cd59c70ce7
commit c8ca89112e
5 changed files with 105 additions and 25 deletions

View File

@@ -113,6 +113,7 @@ extern const char *mariadb_client_errors[]; /* Error messages */
#define CR_UNKNOWN_BINLOG_EVENT 5020
#define CR_BINLOG_ERROR 5021
#define CR_BINLOG_INVALID_FILE 5022
#define CR_BINLOG_SEMI_SYNC_ERROR 5023
/* Always last, if you add new error codes please update the
value for CR_MARIADB_LAST_ERROR */