Commit 2e1ed11
xet chunker is created for each file instead of reused (#1738)
We need to create a fresh Chunker object for each file we process to
avoid the last bytes from the previous file to impact the hash used to
generate chunk boundaries.
This gets ride of the `try {} finally {chunker.free()}` at the end of
file processing so this causes a lot of code to be de-indented, changes
are pretty minimal.
Co-authored-by: coyotte508 <[email protected]>1 parent 1aea2b9 commit 2e1ed11
1 file changed
+16
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
| 349 | + | |
346 | 350 | | |
347 | | - | |
348 | | - | |
349 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
350 | 354 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
0 commit comments