|
|
@@ -27,7 +27,8 @@ import (
|
|
|
// (https://github.com/torvalds/linux/releases/tag/v2.6.23), mmap might
|
|
|
// silently ignore this flag. Please update your kernel to prevent this.
|
|
|
var boltOpenOptions = &bolt.Options{
|
|
|
- MmapFlags: syscall.MAP_POPULATE,
|
|
|
+ MmapFlags: syscall.MAP_POPULATE,
|
|
|
+ NoFreelistSync: true,
|
|
|
}
|
|
|
|
|
|
func (bcfg *BackendConfig) mmapSize() int { return int(bcfg.MmapSize) }
|