From b51c3f91e5cbc8c669295d4774f0acea5952558a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 13 Nov 2024 06:39:14 +0100 Subject: [PATCH] replication: Add GTID_TAGGED_LOG_EVENT --- replication/const.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/replication/const.go b/replication/const.go index 9ebd80b37..555f96b8c 100644 --- a/replication/const.go +++ b/replication/const.go @@ -48,6 +48,9 @@ const ( BINLOG_MARIADB_FL_DDL /*32 - FL_DDL is set for event group containing DDL*/ ) +// See `Log_event_type` in binlog_event.h +// https://github.com/mysql/mysql-server/blob/trunk/libs/mysql/binlog/event/binlog_event.h + type EventType byte const ( @@ -93,6 +96,7 @@ const ( PARTIAL_UPDATE_ROWS_EVENT TRANSACTION_PAYLOAD_EVENT HEARTBEAT_LOG_EVENT_V2 + GTID_TAGGED_LOG_EVENT ) const ( @@ -202,6 +206,8 @@ func (e EventType) String() string { return "TransactionPayloadEvent" case HEARTBEAT_LOG_EVENT_V2: return "HeartbeatLogEventV2" + case GTID_TAGGED_LOG_EVENT: + return "Gtid_tagged_log_event" case MARIADB_START_ENCRYPTION_EVENT: return "MariadbStartEncryptionEvent" case MARIADB_QUERY_COMPRESSED_EVENT: