aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfunkygao <funky.gao@gmail.com>2015-03-25 22:05:58 +0800
committerfunkygao <funky.gao@gmail.com>2015-03-25 22:05:58 +0800
commit6d043164a90129f792615ee964f7b0956c2d38b7 (patch)
treeb8480056188320adea390a0be2d36c00112f90c9
parentfix comment bug: minium db mmapSize is 1MB instead of 4MB (diff)
downloaddedo-6d043164a90129f792615ee964f7b0956c2d38b7.tar.gz
dedo-6d043164a90129f792615ee964f7b0956c2d38b7.tar.xz
add comment: db.dataref is readonly
-rw-r--r--db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.go b/db.go
index 0ba0e41..8f0e90b 100644
--- a/db.go
+++ b/db.go
@@ -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