diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-01 07:51:45 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-01 07:51:45 -0700 |
commit | 1eb9e0902824fff3e7a943d421e83c7d30f43176 (patch) | |
tree | 6a820789a8d180b192dc21a29f8153a3d52bb34c | |
parent | Minor refactor. (diff) | |
parent | Merge pull request #55 from benbjohnson/fix-mmap-resize (diff) | |
download | dedo-1eb9e0902824fff3e7a943d421e83c7d30f43176.tar.gz dedo-1eb9e0902824fff3e7a943d421e83c7d30f43176.tar.xz |
Merge branch 'master' of https://github.com/boltdb/bolt
-rw-r--r-- | db.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -146,7 +146,7 @@ func (db *DB) mmap(minsz int) error { if size < minsz { size = minsz } - size = db.mmapSize(minsz) + size = db.mmapSize(size) // Memory-map the data file as a byte slice. if db.data, err = db.syscall.Mmap(int(db.file.Fd()), 0, size, syscall.PROT_READ, syscall.MAP_SHARED); err != nil { |