diff options
author | funkygao <funky.gao@gmail.com> | 2015-03-25 22:04:41 +0800 |
---|---|---|
committer | funkygao <funky.gao@gmail.com> | 2015-03-25 22:04:41 +0800 |
commit | 20852b29c4c3913226184d67952500ae866b67ce (patch) | |
tree | 38b11acac274b31d27e6655632a60b32b890f863 | |
parent | Merge pull request #285 from tv42/batch (diff) | |
download | dedo-20852b29c4c3913226184d67952500ae866b67ce.tar.gz dedo-20852b29c4c3913226184d67952500ae866b67ce.tar.xz |
fix comment bug: minium db mmapSize is 1MB instead of 4MB
-rw-r--r-- | db.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -244,7 +244,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 4MB and doubles until it reaches 1GB. +// of the database. The minimum size is 1MB 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 1MB until 1GB. |