mirror of https://github.com/hak5/bolt.git
Merge branch 'master' of https://github.com/boltdb/bolt
commit
1eb9e09028
2
db.go
2
db.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue