Merge pull request #5318 from influxdata/jw-restart

Remove MAP_POPULATE
pull/5330/head
Jason Wilder 2016-01-08 09:29:01 -07:00
commit 72c6a51c78
1 changed files with 1 additions and 3 deletions

View File

@ -8,10 +8,8 @@ import (
"unsafe"
)
const MAP_POPULATE = 0x8000
func mmap(f *os.File, offset int64, length int) ([]byte, error) {
mmap, err := syscall.Mmap(int(f.Fd()), 0, length, syscall.PROT_READ, syscall.MAP_SHARED|MAP_POPULATE)
mmap, err := syscall.Mmap(int(f.Fd()), 0, length, syscall.PROT_READ, syscall.MAP_SHARED)
if err != nil {
return nil, err
}