mirror of https://gitee.com/bigwinds/arangodb
removed posix_fadvise call from PosixSequentialFile::Read(). this is consistent with facebook PR 2573 (#3505)
This commit is contained in:
parent
7d4b319c58
commit
f64a2eb996
|
@ -172,9 +172,7 @@ Status PosixSequentialFile::Read(size_t n, Slice* result, char* scratch) {
|
|||
s = IOError(filename_, errno);
|
||||
}
|
||||
}
|
||||
// we need to fadvise away the entire range of pages because
|
||||
// we do not want readahead pages to be cached under buffered io
|
||||
Fadvise(fd_, 0, 0, POSIX_FADV_DONTNEED); // free OS pages
|
||||
// matthewv: removed Fadvise call here that was also removed by facebook in 5.7.1
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue