aboutsummaryrefslogtreecommitdiff
path: root/bolt_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'bolt_unix.go')
-rw-r--r--bolt_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt_unix.go b/bolt_unix.go
index 5a199c7..4b0723a 100644
--- a/bolt_unix.go
+++ b/bolt_unix.go
@@ -47,7 +47,7 @@ func funlock(f *os.File) error {
// mmap memory maps a DB's data file.
func mmap(db *DB, sz int) error {
// Map the data file to memory.
- b, err := syscall.Mmap(int(db.file.Fd()), 0, sz, syscall.PROT_READ, syscall.MAP_SHARED)
+ b, err := syscall.Mmap(int(db.file.Fd()), 0, sz, syscall.PROT_READ, syscall.MAP_SHARED|db.MmapFlags)
if err != nil {
return err
}