-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC tracker: prepare for variable chunk size on the write side
Hide WRITE_SNAPSHOT_GRANULARITY behind a function, and rename the constant to `*DEFAULT_*WRITE_SNAPSHOT_GRANULARITY`, to enforce using the function. The Tracker object now keeps track of its snapshot granularity (i.e., chunk size, except for the last chunk which may be shorter) as a field... and pipes it all the way to the serialised ManifestV1. Manual inspection shows that the remaining reference changes (a lot of which also transitively turned into functions) are for performance heuristics (copier.rs, unzstd.rs), and thus also apply the current default as the min value, to avoid acting too weird when the actual chunk size is eventually configured much smaller than expected. TESTED=it builds
- Loading branch information
Showing
4 changed files
with
41 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters