mirror of https://github.com/ledisdb/ledisdb.git
use newest goleveldb
you must update goleveldb by yourself
This commit is contained in:
parent
f91d8fe09a
commit
f2cc5f5fd9
|
@ -11,8 +11,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/boltdb/bolt",
|
"ImportPath": "github.com/boltdb/bolt",
|
||||||
"Comment": "data/v1-256-ge65c902",
|
"Comment": "v1.0-5-g33e7a07",
|
||||||
"Rev": "e65c9027c35b7ef1014db9e02686889e51aadb2e"
|
"Rev": "33e7a074e2c470b6d0b7ee23322a1c4cc759044b"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/cupcake/rdb",
|
"ImportPath": "github.com/cupcake/rdb",
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/syndtr/goleveldb/leveldb",
|
"ImportPath": "github.com/syndtr/goleveldb/leveldb",
|
||||||
"Rev": "c9e0ae706141dc099005d6d247e4880c7feda2e1"
|
"Rev": "63c9e642efad852f49e20a6f90194cae112fd2ac"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/syndtr/gosnappy/snappy",
|
"ImportPath": "github.com/syndtr/gosnappy/snappy",
|
||||||
|
|
|
@ -113,7 +113,7 @@ func newOptions(cfg *config.LevelDBConfig) *opt.Options {
|
||||||
opts := &opt.Options{}
|
opts := &opt.Options{}
|
||||||
opts.ErrorIfMissing = false
|
opts.ErrorIfMissing = false
|
||||||
|
|
||||||
opts.BlockCache = cache.NewLRUCache(cfg.CacheSize)
|
opts.BlockCacheCapacity = cfg.CacheSize
|
||||||
|
|
||||||
//we must use bloomfilter
|
//we must use bloomfilter
|
||||||
opts.Filter = filter.NewBloomFilter(defaultFilterBits)
|
opts.Filter = filter.NewBloomFilter(defaultFilterBits)
|
||||||
|
@ -126,7 +126,7 @@ func newOptions(cfg *config.LevelDBConfig) *opt.Options {
|
||||||
|
|
||||||
opts.BlockSize = cfg.BlockSize
|
opts.BlockSize = cfg.BlockSize
|
||||||
opts.WriteBuffer = cfg.WriteBufferSize
|
opts.WriteBuffer = cfg.WriteBufferSize
|
||||||
opts.CachedOpenFiles = cfg.MaxOpenFiles
|
opts.OpenFilesCacheCapacity = cfg.MaxOpenFiles
|
||||||
|
|
||||||
//here we use default value, later add config support
|
//here we use default value, later add config support
|
||||||
opts.CompactionTableSize = 32 * 1024 * 1024
|
opts.CompactionTableSize = 32 * 1024 * 1024
|
||||||
|
|
Loading…
Reference in New Issue