Free RLock prior to returning
parent
dba3ce1a42
commit
2ccdda72a1
|
@ -330,11 +330,13 @@ func (m *Measurement) TagSets(shardID uint64, opt influxql.IteratorOptions) ([]*
|
|||
// Abort if the query was killed
|
||||
select {
|
||||
case <-opt.InterruptCh:
|
||||
m.mu.RUnlock()
|
||||
return nil, influxql.ErrQueryInterrupted
|
||||
default:
|
||||
}
|
||||
|
||||
if opt.MaxSeriesN > 0 && seriesN > opt.MaxSeriesN {
|
||||
m.mu.RUnlock()
|
||||
return nil, fmt.Errorf("max-select-series limit exceeded: (%d/%d)", seriesN, opt.MaxSeriesN)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue