fix: lost TSI reference / close TagValueSeriesIDIterator in error case (#23461)
parent
9e556864a3
commit
8bd4fc502d
|
@ -1009,6 +1009,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)
|
||||
|
|
Loading…
Reference in New Issue