Skip to content

Commit

Permalink
reorder sequence
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 e7a7af8 commit bc6770b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/mysql/binlog_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ func (c *Conn) parseComBinlogDumpGTID(data []byte) (logFile string, logPos uint6
return logFile, logPos, position, readPacketErr
}

if flags2&BinlogDumpNonBlock != 0 {
return logFile, logPos, position, io.EOF
}
dataSize, pos, ok := readUint32(data, pos)
if !ok {
return logFile, logPos, position, readPacketErr
Expand All @@ -85,6 +82,9 @@ func (c *Conn) parseComBinlogDumpGTID(data []byte) (logFile string, logPos uint6
return logFile, logPos, position, err
}
}
if flags2&BinlogDumpNonBlock != 0 {
return logFile, logPos, position, io.EOF
}

return logFile, logPos, position, nil
}

0 comments on commit bc6770b

Please sign in to comment.