Skip to content

Commit

Permalink
fix: lost TSI reference / close TagValueSeriesIDIterator in error case (
Browse files Browse the repository at this point in the history
#23461)

(cherry picked from commit 8bd4fc5)

closes #23460
  • Loading branch information
DStrand1 authored and davidby-influx committed Jun 16, 2022
1 parent 07ee889 commit 22a3171
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsdb/index/tsi1/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ func (i *Index) TagValueSeriesIDIterator(name, key, value []byte) (tsdb.SeriesID
for _, p := range i.partitions {
itr, err := p.TagValueSeriesIDIterator(name, key, value)
if err != nil {
tsdb.SeriesIDIterators(a).Close()
return nil, err
} else if itr != nil {
a = append(a, itr)
Expand Down

0 comments on commit 22a3171

Please sign in to comment.