Skip to content

Commit

Permalink
fix(fix-binlog-end-log-pos-over-lost-data): fix doc
Browse files Browse the repository at this point in the history
x
  • Loading branch information
shaohoukun committed Feb 29, 2024
1 parent bad5296 commit f869a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/mysql/binlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ func (this *BinlogCoordinates) SmallerThanOrEquals(other *BinlogCoordinates) boo
}

// IsLogPosOverflowBeyond4Bytes returns true if the coordinate endpos is overflow beyond 4 bytes.
// The binlog event end_log_pos field type is defined as uint32, 4 bytes.
// The binlog event end_log_pos field type is defined as uint32, 4 bytes.
// https://github.com/go-mysql-org/go-mysql/blob/master/replication/event.go
// https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_binlog_event_header
// Issue: https://github.com/github/gh-ost/issues/1366
// Protocol: https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_binlog_event_header
func (this *BinlogCoordinates) IsLogPosOverflowBeyond4Bytes(preCoordinate *BinlogCoordinates) bool {
if preCoordinate == nil {
return false
Expand Down

0 comments on commit f869a00

Please sign in to comment.