Skip to content

Commit

Permalink
Sync sequence like MySQL does
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Nov 2, 2023
1 parent 38bfe26 commit ee66779
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/internal/packetio.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ func (p *PacketIO) Flush() error {
if err != nil {
return errors.Trace(err)
}

if p.compressionAlgorithm != mysql.CompressionNone {
p.sequence = p.compressedSequence
}
return err
}

Expand Down

0 comments on commit ee66779

Please sign in to comment.