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
influxdata#23461) (influxdata#23462)

(cherry picked from commit 8bd4fc5)

closes influxdata#23460

Co-authored-by: Dane Strandboge <[email protected]>
  • Loading branch information
2 people authored and chengshiwen committed Aug 27, 2024
1 parent 288cec9 commit 284dd93
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 @@ -1063,6 +1063,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 284dd93

Please sign in to comment.