aboutsummaryrefslogtreecommitdiff
path: root/bolt_unix_solaris.go
diff options
context:
space:
mode:
Diffstat (limited to 'bolt_unix_solaris.go')
-rw-r--r--bolt_unix_solaris.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt_unix_solaris.go b/bolt_unix_solaris.go
index 13c800b..1c4e48d 100644
--- a/bolt_unix_solaris.go
+++ b/bolt_unix_solaris.go
@@ -57,7 +57,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 := unix.Mmap(int(db.file.Fd()), 0, sz, syscall.PROT_READ, syscall.MAP_SHARED)
+ b, err := unix.Mmap(int(db.file.Fd()), 0, sz, syscall.PROT_READ, syscall.MAP_SHARED|db.MmapFlags)
if err != nil {
return err
}