Skip to content

Commit

Permalink
Always free buffers
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <[email protected]>
  • Loading branch information
aknuds1 committed Dec 13, 2024
1 parent 80ab1c7 commit 645003d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/distributor/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ func (d *Distributor) queryIngesterStream(ctx context.Context, replicationSets [
cleanup()
}

if err != nil {
result.freeBuffers()
}
result.freeBuffers()
}()

log.Span.SetTag("ingester_address", ing.Addr)
Expand Down Expand Up @@ -458,7 +456,7 @@ func (d *Distributor) queryIngesterStream(ctx context.Context, replicationSets [
res.streamingSeries.StreamReader.StartBuffering()
}

res.freeBuffers()
// res.freeBuffers()
}

// Now turn the accumulated maps into slices.
Expand Down

0 comments on commit 645003d

Please sign in to comment.