set cache.BlockSizeK in KB not MB
parent
4eecb7fb94
commit
ca7d7efe7d
|
@ -154,7 +154,7 @@ func (c *cache) open(path string) error {
|
|||
opts.SetWriteBufferSize(c.options.WriteBufferSizeM * 1024 * 1024)
|
||||
}
|
||||
if c.options.BlockSizeK > 0 {
|
||||
opts.SetBlockSize(c.options.BlockSizeK * 1024 * 1024)
|
||||
opts.SetBlockSize(c.options.BlockSizeK * 1024)
|
||||
}
|
||||
|
||||
db, err := levigo.Open(path, opts)
|
||||
|
|
Loading…
Reference in New Issue