-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl: enable splitting full ranges during restore
Previously sstBatcher had a boolean to control whether it would split and then scatter a range it was filling when it could determine that it was about to overfill it i.e. if had previously reported its remaining capacity to be less than what the batcher was about to add. RESTORE set this boolean to disable this splitting and scattering as it pre-split and pre-scattered all of its ranges and thus did not expect the batcher to need to do any as-it-fills splitting and scattering. However blanket disabling this makes little sense: if the batcher knows that it is about to overfill a range, regardless of whether or not that range was supposed to be pre-split to avoid this, it always makes sense to split it before adding to it, rather than overfill it. Thus this change makes as-we-fill splits unconditional, and moves the boolean to be more narrowly scoped to just disabling the scatters, as RESTORE still pre-scatters its pre-chunked restore spans. This paves the way for RESTORE to make and pre-split larger chunks, without worrying if doing so will cause overfilling of ranges. Release note: none. Release justification: bug fix.
- Loading branch information
Showing
2 changed files
with
25 additions
and
21 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