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) (#23464)

(cherry picked from commit 8bd4fc5)

closes #23460

Co-authored-by: Dane Strandboge <dstrandboge@influxdata.com>
  • Loading branch information
davidby-influx and DStrand1 authored Jun 16, 2022
1 parent 6ecfacf commit 1c5b711
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 @@ -1076,6 +1076,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 1c5b711

Please sign in to comment.