Merge pull request #8580 from influxdata/sgc-8500-deadlock

Free RLock prior to returning
pull/8579/head
Stuart Carnie 2017-07-10 09:26:34 -07:00 committed by GitHub
commit 05f9977295
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@
### Bugfixes
- [#8559](https://github.com/influxdata/influxdb/issues/8559): Ensure temporary TSM files get cleaned up when compaction aborted.
- [#8500](https://github.com/influxdata/influxdb/issues/8500): InfluxDB goes unresponsive
## v1.3.0 [2017-06-21]

View File

@ -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)
}