Skip to content

Commit

Permalink
mvcc/backend: enable 'NoFreelistSync' by default (linux)
Browse files Browse the repository at this point in the history
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Jul 5, 2017
1 parent 89ced7c commit 870302a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mvcc/backend/config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

0 comments on commit 870302a

Please sign in to comment.