Skip to content

Commit

Permalink
chore(blooms): Return decompression reader to pool (#16001)
Browse files Browse the repository at this point in the history
  • Loading branch information
benclive authored Feb 1, 2025
1 parent 319bb0f commit ac8d79e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/bloom/v1/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (b *BlockIndex) NewSeriesPageDecoder(r io.ReadSeeker, header SeriesPageHead
if err != nil {
return nil, errors.Wrap(err, "getting decompressor")
}
defer b.opts.Schema.DecompressorPool().PutReader(decompressor)

decompressed := make([]byte, header.DecompressedLen)
if _, err = io.ReadFull(decompressor, decompressed); err != nil {
Expand Down

0 comments on commit ac8d79e

Please sign in to comment.