Skip to content

Commit

Permalink
Minor change from self review
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Oct 22, 2024
1 parent aa2d87f commit 0340b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/mysql/binlog_event_compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (dp *decoderPool) Get(reader io.Reader) (*zstd.Decoder, error) {
} else {
d, err := zstd.NewReader(nil, zstd.WithDecoderMaxMemory(zstdInMemoryDecompressorMaxSize))
if err != nil { // Should only happen e.g. due to ENOMEM
return nil, vterrors.New(vtrpcpb.Code_INTERNAL, "failed to create stateful stream decoder")
return nil, vterrors.Wrap(err, "failed to create stateful stream decoder")
}
decoder = d
}
Expand Down

0 comments on commit 0340b02

Please sign in to comment.