Commit 639a39d
Remove redundant MADV_POPULATE_READ from MappedDiskVector
Summary:
MADV_POPULATE_WRITE subsumes MADV_POPULATE_READ: a write fault reads the
page from disk before marking it dirty, so it catches the same I/O errors
(corruption, missing extents) that POPULATE_READ detects. Since the
constructor already calls populateForWrite over the full mapping region,
the earlier POPULATE_READ call is redundant.
This also removes the now-unused `shouldPopulate` / `populate` parameter
from `open()` and the private constructor—it existed solely to control
the POPULATE_READ call.
Reviewed By: genevievehelsel
Differential Revision: D99742007
fbshipit-source-id: f6d4f54df60ba4ab0bdc701b150dc0da00de22031 parent 2afed30 commit 639a39d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments