0
0
Fork 0

add go1.4 build tag to cznicb KVStore

This is because github.com/cznic/b depends on sync.Pool.
This commit is contained in:
Steve Yen 2015-01-15 15:54:22 -08:00
parent 11ee0209ad
commit 12dc2aff93
3 changed files with 18 additions and 1 deletions

View File

@ -100,7 +100,6 @@ import (
// kv stores
_ "github.com/blevesearch/bleve/index/store/boltdb"
_ "github.com/blevesearch/bleve/index/store/cznicb"
_ "github.com/blevesearch/bleve/index/store/gtreap"
_ "github.com/blevesearch/bleve/index/store/inmem"

16
config_cznicb.go Normal file
View File

@ -0,0 +1,16 @@
// Copyright (c) 2014 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 go1.4
package bleve
import (
_ "github.com/blevesearch/bleve/index/store/cznicb"
)

View File

@ -9,6 +9,8 @@
// express or implied. See the License for the specific language
// governing permissions and limitations under the License.
// +build go1.4
// Package cznicb provides an in-memory implementation of the KVStore
// interfaces using the cznic/b in-memory btree. Of note: this
// implementation does not have reader isolation.