From 077159a12631e8e916e7499afdaf64b5bc0b7be9 Mon Sep 17 00:00:00 2001 From: David Norton Date: Thu, 4 Jun 2015 18:53:00 -0400 Subject: [PATCH] fix #2733: check config before enabling CQ service --- cmd/influxd/run/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/influxd/run/server.go b/cmd/influxd/run/server.go index e2010f12bf..b25089bbf0 100644 --- a/cmd/influxd/run/server.go +++ b/cmd/influxd/run/server.go @@ -142,6 +142,9 @@ func (s *Server) appendUDPService(c udp.Config) { } func (s *Server) appendContinuousQueryService(c continuous_querier.Config) { + if !c.Enabled { + return + } srv := continuous_querier.NewService(c) srv.MetaStore = s.MetaStore srv.QueryExecutor = s.QueryExecutor