From 86f2b844b451f1f168339cd9fde31b93fae0eb79 Mon Sep 17 00:00:00 2001 From: Steve Yen Date: Wed, 8 Apr 2015 22:08:01 -0700 Subject: [PATCH] added config_metrics.go which builds on debug tag When the debug tag is used, the config_metrics.go file ensures the metrics decorator KV store is imported. --- config_metrics.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config_metrics.go diff --git a/config_metrics.go b/config_metrics.go new file mode 100644 index 00000000..7b7ae581 --- /dev/null +++ b/config_metrics.go @@ -0,0 +1,17 @@ +// Copyright (c) 2015 Couchbase, Inc. +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file +// except in compliance with the License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software distributed under the +// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, +// either express or implied. See the License for the specific language governing permissions +// and limitations under the License. + +// +build debug + +package bleve + +import ( + _ "github.com/blevesearch/bleve/index/store/metrics" +) +