Commit 310610f
Add option to control if the index record should be pre-allocated
Summary:
By default, during filter-copy operations, when the output file is created locally, vrs pre-allocates space for the index record early in the file. While this usually makes the file more streaming-friendly if it's later uploaded to the cloud, in some situations, the index can be significantly smaller or bigger than anticipated, causing some file size "surprises". This is usually not a problem (the files are fine and the "surprises" are at most 10 to 20 MB large when dealing with large indexes), but it can create confusion, in particular when trying experimenting with data size.
This new option gives control, so we can avoid this condition altogether.
Note that these conditions never happen when a file is created in the cloud, because of how the index can be prepended to the file, at the end of the file's head.
Differential Revision: D77634889
fbshipit-source-id: bec9ad38d4dcdc02ec26c08398a6895367c9e1b41 parent f1cf3d9 commit 310610f
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
0 commit comments