Skip to content

Commit

Permalink
ignore BinlogThroughGTID flag on server side
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Jan 21, 2025
1 parent 6e5a12f commit e7a7af8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions go/mysql/binlog_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,14 @@ func (c *Conn) parseComBinlogDumpGTID(data []byte) (logFile string, logPos uint6
if flags2&BinlogDumpNonBlock != 0 {
return logFile, logPos, position, io.EOF
}
if flags2&BinlogThroughGTID != 0 {
dataSize, pos, ok := readUint32(data, pos)
if !ok {
return logFile, logPos, position, readPacketErr
}
if gtid := string(data[pos : pos+int(dataSize)]); gtid != "" {
position, err = replication.DecodePosition(gtid)
if err != nil {
return logFile, logPos, position, err
}
dataSize, pos, ok := readUint32(data, pos)
if !ok {
return logFile, logPos, position, readPacketErr
}
if gtid := string(data[pos : pos+int(dataSize)]); gtid != "" {
position, err = replication.DecodePosition(gtid)
if err != nil {
return logFile, logPos, position, err
}
}

Expand Down

0 comments on commit e7a7af8

Please sign in to comment.