Merge pull request #6922 from influxdata/jw-6829
Fix panic: runtime error: index out of rangepull/6918/head
commit
5aae28e14f
|
@ -76,6 +76,7 @@ With this release the systemd configuration files for InfluxDB will use the syst
|
|||
- [#6864](https://github.com/influxdata/influxdb/pull/6864): Allow a non-admin to call "use" for the influx cli.
|
||||
- [#6855](https://github.com/influxdata/influxdb/pull/6855): Update `stress/v2` to work with clusters, ssl, and username/password auth. Code cleanup
|
||||
- [#6738](https://github.com/influxdata/influxdb/issues/6738): Time sorting broken with overwritten points
|
||||
- [#6829](https://github.com/influxdata/influxdb/issues/6829): Fix panic: runtime error: index out of range
|
||||
|
||||
## v0.13.0 [2016-05-12]
|
||||
|
||||
|
|
|
@ -413,7 +413,7 @@ func (c *Cache) merged(key string) Values {
|
|||
n := 0
|
||||
for _, e := range entries {
|
||||
e.mu.RLock()
|
||||
if !needSort && n > 0 {
|
||||
if !needSort && n > 0 && len(e.values) > 0 {
|
||||
needSort = values[n-1].UnixNano() >= e.values[0].UnixNano()
|
||||
}
|
||||
n += copy(values[n:], e.values)
|
||||
|
|
Loading…
Reference in New Issue