Skip to content

Commit

Permalink
Get rid of cruft from earlier parsing work
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Feb 23, 2024
1 parent 46765af commit f1971b2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/mysql/binlog_event_rbr.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@ func readColumnCollationIDs(data []byte, pos, count int) ([]collations.ID, error
fieldType := uint8(data[pos])
pos++

if fieldType == 0 { // Null byte separator
continue
}

fieldLen, read, ok := readLenEncInt(data, pos)
if !ok || read+int(fieldLen) > len(data) {
return nil, vterrors.New(vtrpcpb.Code_INTERNAL, "error reading optional metadata field length")

Check warning on line 235 in go/mysql/binlog_event_rbr.go

View check run for this annotation

Codecov / codecov/patch

go/mysql/binlog_event_rbr.go#L235

Added line #L235 was not covered by tests
Expand Down

0 comments on commit f1971b2

Please sign in to comment.