-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize work item definition in BackupEngineImpl (#13228)
Summary: This change refactors existing `CopyOrCreateWorkItem` async task definition to a more generic one (`WorkItem`) with an assigned `type` indicative of intended action. This would allow us to reuse existing, battle-tested async tasks initialization code to handle wider range of incoming use cases in B/R space. ### Motivation Historically, the two main use cases for `BackupEngineImpl`'s async work items were either creating a file in backup workflow or copying files in restore workflow. However, as we're now exploring opportunities in incremental restore (and potentially speeding up backup verification), we need the work item abstraction to be capable of processing different workflow types concurrently (computing checksum comes to mind). Pull Request resolved: #13228 Test Plan: Since this is purely cosmetic change where behavior remains intact, existing test collateral will suffice. Reviewed By: pdillinger Differential Revision: D67441210 Pulled By: mszeszko-meta fbshipit-source-id: 78803e8cf3cf40b9d81831fac3a99193e1a30ef0
- Loading branch information
1 parent
c8bc2b6
commit f7b4216
Showing
1 changed file
with
121 additions
and
89 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