1
0
Fork 0

removed posix_fadvise call from PosixSequentialFile::Read(). this is consistent with facebook PR 2573 (#3505)

This commit is contained in:
Matthew Von-Maszewski 2017-10-25 14:39:46 +02:00 committed by Max Neunhöffer
parent 7d4b319c58
commit f64a2eb996
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}