diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2015-03-25 09:32:52 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2015-03-25 09:32:52 -0600 |
commit | 63ec32ef321972daedc5f45f3b799adac9dda110 (patch) | |
tree | 3dce0dd91376ae89c4f4a00e5f0884fb5a303072 | |
parent | Merge pull request #333 from benbjohnson/document-key-value-safety (diff) | |
parent | add comment: db.dataref is readonly (diff) | |
download | dedo-63ec32ef321972daedc5f45f3b799adac9dda110.tar.gz dedo-63ec32ef321972daedc5f45f3b799adac9dda110.tar.xz |
Merge pull request #334 from funkygao/master
fix doc bug and add comment for db.dataref
-rw-r--r-- | db.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ type DB struct { path string file *os.File - dataref []byte + dataref []byte // mmap'ed readonly, write throws SEGV data *[maxMapSize]byte datasz int meta0 *meta @@ -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. |