Fix leveldb change skew

Make leveldb match the changes in syndtr/leveldb API due to breakages at
syndtr/goleveldb@63c9e64.
This commit is contained in:
kortschak 2014-12-12 08:24:38 +10:30
parent 8437520018
commit 844e811f0f

View file

@ -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