Skip to content

Commit c7b7533

Browse files
authored
replication: Add GTID_TAGGED_LOG_EVENT (go-mysql-org#947)
1 parent 760b566 commit c7b7533

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

replication/const.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ const (
4848
BINLOG_MARIADB_FL_DDL /*32 - FL_DDL is set for event group containing DDL*/
4949
)
5050

51+
// See `Log_event_type` in binlog_event.h
52+
// https://github.com/mysql/mysql-server/blob/trunk/libs/mysql/binlog/event/binlog_event.h
53+
5154
type EventType byte
5255

5356
const (
@@ -93,6 +96,7 @@ const (
9396
PARTIAL_UPDATE_ROWS_EVENT
9497
TRANSACTION_PAYLOAD_EVENT
9598
HEARTBEAT_LOG_EVENT_V2
99+
GTID_TAGGED_LOG_EVENT
96100
)
97101

98102
const (
@@ -202,6 +206,8 @@ func (e EventType) String() string {
202206
return "TransactionPayloadEvent"
203207
case HEARTBEAT_LOG_EVENT_V2:
204208
return "HeartbeatLogEventV2"
209+
case GTID_TAGGED_LOG_EVENT:
210+
return "Gtid_tagged_log_event"
205211
case MARIADB_START_ENCRYPTION_EVENT:
206212
return "MariadbStartEncryptionEvent"
207213
case MARIADB_QUERY_COMPRESSED_EVENT:

0 commit comments

Comments
 (0)