fix #2733: check config before enabling CQ service

pull/2779/head
David Norton 2015-06-04 18:53:00 -04:00
parent 092bc3fd2d
commit 077159a126
1 changed files with 3 additions and 0 deletions

View File

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