From cb2fe96ba04593e946fd71759bbfdb4b03e94c79 Mon Sep 17 00:00:00 2001 From: ben hockey Date: Tue, 28 Apr 2015 15:03:56 -0500 Subject: [PATCH] count each executed query in queriesExecuted stat --- server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index 5c71a77fd1..a2f32189ed 100644 --- a/server.go +++ b/server.go @@ -2257,6 +2257,8 @@ func (s *Server) ExecuteQuery(q *influxql.Query, database string, user *User, ch break } } + + s.stats.Inc("queriesExecuted") } // if there was an error send results that the remaining statements weren't executed @@ -2264,7 +2266,6 @@ func (s *Server) ExecuteQuery(q *influxql.Query, database string, user *User, ch results <- &Result{Err: ErrNotExecuted} } - s.stats.Inc("queriesExecuted") close(results) }()