From 844e811f0f42da8676361fec7986f87a31a347f3 Mon Sep 17 00:00:00 2001 From: kortschak Date: Fri, 12 Dec 2014 08:24:38 +1030 Subject: [PATCH] Fix leveldb change skew Make leveldb match the changes in syndtr/leveldb API due to breakages at syndtr/goleveldb@63c9e64. --- graph/leveldb/quadstore.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graph/leveldb/quadstore.go b/graph/leveldb/quadstore.go index 641a6f5..ee41dff 100644 --- a/graph/leveldb/quadstore.go +++ b/graph/leveldb/quadstore.go @@ -26,7 +26,6 @@ import ( "github.com/barakmich/glog" "github.com/syndtr/goleveldb/leveldb" - "github.com/syndtr/goleveldb/leveldb/cache" "github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/util" @@ -94,7 +93,7 @@ func newQuadStore(path string, options graph.Options) (graph.QuadStore, error) { cacheSize = val } qs.dbOpts = &opt.Options{ - BlockCache: cache.NewLRUCache(cacheSize * opt.MiB), + BlockCacheCapacity: cacheSize * opt.MiB, } qs.dbOpts.ErrorIfMissing = true