Merge pull request #471 from rhcarvalho/patch-1

Update min mmap size in godoc
master
Ben Johnson 2015-12-30 08:34:08 -07:00
commit f1153131c9
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -271,7 +271,7 @@ func (db *DB) munmap() error {
}
// mmapSize determines the appropriate size for the mmap given the current size
// of the database. The minimum size is 1MB and doubles until it reaches 1GB.
// of the database. The minimum size is 32KB and doubles until it reaches 1GB.
// Returns an error if the new mmap size is greater than the max allowed.
func (db *DB) mmapSize(size int) (int, error) {
// Double the size from 32KB until 1GB.