diff options
| author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-27 14:37:11 -0700 |
|---|---|---|
| committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-27 14:37:11 -0700 |
| commit | 9abba5dfa20c5fa9501edfcd4486a5cfecedefe2 (patch) | |
| tree | 3dd21d3df98e00626dec99ad09d584a194fba7e4 | |
| parent | Add bucket reclamation. (diff) | |
| parent | Fix the mmap resize to use the correct size. (diff) | |
| download | dedo-9abba5dfa20c5fa9501edfcd4486a5cfecedefe2.tar.gz dedo-9abba5dfa20c5fa9501edfcd4486a5cfecedefe2.tar.xz | |
Merge pull request #55 from benbjohnson/fix-mmap-resize
Fix the mmap resize to use the correct size.
| -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 { |
