From f822bb43e988ffc28b38f55657ec92adf5ff85f9 Mon Sep 17 00:00:00 2001 From: Michael Baird Date: Tue, 30 May 2017 12:55:45 -0500 Subject: [PATCH] Remove long query time from Server. That parameter is managed in the Cluster. --- cmd/server.go | 2 +- server.go | 3 --- server/server.go | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index ea10d23c6..3e43869c5 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -32,7 +32,7 @@ import ( // Server is global so that tests can control and verify it. var Server *server.Command -// NewServeCmd create a pilosa server and run it with command line flags +// NewServeCmd creates a pilosa server and runs it with command line flags. func NewServeCmd(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command { Server = server.NewCommand(stdin, stdout, stderr) serveCmd := &cobra.Command{ diff --git a/server.go b/server.go index 428e979c4..78dc7644a 100644 --- a/server.go +++ b/server.go @@ -64,9 +64,6 @@ type Server struct { PollingInterval time.Duration MetricInterval time.Duration - // Threshold for logging long queries - LongQueryTime time.Duration - // Misc options. MaxWritesPerRequest int diff --git a/server/server.go b/server/server.go index 7738f513c..a9dc07ace 100644 --- a/server/server.go +++ b/server/server.go @@ -198,7 +198,6 @@ func (m *Command) SetupServer() error { // Set configuration options. m.Server.AntiEntropyInterval = time.Duration(m.Config.AntiEntropy.Interval) - m.Server.Cluster.LongQueryTime = time.Duration(m.Config.Cluster.LongQueryTime) return nil }