Merge pull request #6860 from influxdata/js-6859-condition-nil-iterator-panic

Set the condition cursor instead of aux iterator when creating a nil condition cursor
pull/6867/head
Jonathan A. Sternberg 2016-06-17 15:13:39 -05:00 committed by GitHub
commit 551cb61d9e
2 changed files with 5 additions and 4 deletions

View File

@ -67,6 +67,7 @@ With this release the systemd configuration files for InfluxDB will use the syst
- [#6834](https://github.com/influxdata/influxdb/pull/6834): Add port to all graphite log output to help with debugging multiple endpoints
- [#6850](https://github.com/influxdata/influxdb/pull/6850): Modify the max nanosecond time to be one nanosecond less.
- [#6824](https://github.com/influxdata/influxdb/issues/6824): Remove systemd output redirection.
- [#6859](https://github.com/influxdata/influxdb/issues/6859): Set the condition cursor instead of aux iterator when creating a nil condition cursor.
## v0.13.0 [2016-05-12]

View File

@ -1147,16 +1147,16 @@ func (e *Engine) createVarRefSeriesIterator(ref *influxql.VarRef, mm *tsdb.Measu
// If a field was requested, use a nil cursor of the requested type.
switch ref.Type {
case influxql.Float, influxql.AnyField:
aux[i] = &floatNilLiteralCursor{}
conds[i] = &floatNilLiteralCursor{}
continue
case influxql.Integer:
aux[i] = &integerNilLiteralCursor{}
conds[i] = &integerNilLiteralCursor{}
continue
case influxql.String:
aux[i] = &stringNilLiteralCursor{}
conds[i] = &stringNilLiteralCursor{}
continue
case influxql.Boolean:
aux[i] = &booleanNilLiteralCursor{}
conds[i] = &booleanNilLiteralCursor{}
continue
}
}