Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit f331ff6

Browse files
authored
Fix condition when to create a new slice (#804)
1 parent ab467dc commit f331ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/phlaredb/block_querier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ func (b *singleBlockQuerier) SelectMatchingProfiles(ctx context.Context, params
10181018
buf = res.Columns(buf, "SeriesIndex", "TimeNanos", "StacktracePartition")
10191019
seriesIndex := buf[0][0].Int64()
10201020
if seriesIndex != currSeriesIndex {
1021-
currSeriesIndex++
1021+
currSeriesIndex = seriesIndex
10221022
if len(currentSeriesSlice) > 0 {
10231023
iters = append(iters, iter.NewSliceIterator(currentSeriesSlice))
10241024
}

0 commit comments

Comments
 (0)