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 6eef6b2..251680b 100644
--- a/bolt_unix.go
+++ b/bolt_unix.go
@@ -58,7 +58,7 @@ 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
}