master
Ben Johnson 2014-03-01 07:51:45 -07:00
commit 1eb9e09028
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -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 {