Skip to content

Commit c84b0fc

Browse files
committed
addressing PR feedback
1 parent e372b06 commit c84b0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packet/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (c *Conn) copyN(dst io.Writer, n int64) (int64, error) {
199199
// bytes are read. In this case, and when we have compression then advance
200200
// the sequence number and reset the compressed reader to continue reading
201201
// the remaining bytes in the next compressed packet.
202-
if c.Compression != MYSQL_COMPRESS_NONE && rd < bcap &&
202+
if c.Compression != MYSQL_COMPRESS_NONE &&
203203
(goErrors.Is(err, io.ErrUnexpectedEOF) || goErrors.Is(err, io.EOF)) {
204204
// we have read to EOF and read an incomplete uncompressed packet
205205
// so advance the compressed sequence number and reset the compressed reader

0 commit comments

Comments
 (0)