Skip to content

Commit

Permalink
zstd: Always reset literal dict encoder (#303)
Browse files Browse the repository at this point in the history
Currently the literal encoder can be carried over.

Not currently needed, but could give unexpected results in the future.
  • Loading branch information
klauspost authored Dec 18, 2020
1 parent bb6b954 commit 4c6da39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zstd/blockenc.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (b *blockEnc) reset(prev *blockEnc) {
if prev != nil {
b.recentOffsets = prev.prevRecentOffsets
}
b.dictLitEnc = nil
}

// reset will reset the block for a new encode, but in the same stream,
Expand Down

0 comments on commit 4c6da39

Please sign in to comment.