From 44462745771a7212a16f361ab6920abbda09f185 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Tue, 12 May 2015 14:58:50 -0700 Subject: [PATCH] Run CQ passed into goroutine, not from outer loop --- CHANGELOG.md | 1 + server.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3584abb32c2..e6eeb6d98c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This release has a breaking API change for writes -- the field previously called - [#2542](https://github.com/influxdb/influxdb/issues/2542): Throw parser error for invalid aggregate without where time. - [#2548](https://github.com/influxdb/influxdb/issues/2548): Return an error when numeric aggregate applied to non-numeric data. - [#2487](https://github.com/influxdb/influxdb/issues/2487): Aggregate query with exact timestamp causes panic. Thanks @neonstalwart! +- [#2552](https://github.com/influxdb/influxdb/issues/2552): Run CQ that is actually passed into go-routine. ## v0.9.0-rc29 [2015-05-05] diff --git a/server.go b/server.go index 45dfc611c17..b06002bb9df 100644 --- a/server.go +++ b/server.go @@ -3908,7 +3908,7 @@ func (s *Server) RunContinuousQueries() error { c.setIntoRP(d.defaultRetentionPolicy) } go func(cq *ContinuousQuery) { - s.runContinuousQuery(c) + s.runContinuousQuery(cq) }(c) } }