forked from apple/foundationdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Backup and Restore Code
Jingyu Zhou edited this page Oct 24, 2021
·
2 revisions
BackupLogRangeTaskFunc::_execute, which divides the range into smaller ones, each calls readCommitted().
Restore agent reads mutation data and writes to \xff key space. The first proxy (i.e., proxy 0) calls applyMetadataMutations(), which calls checkSetApplyMutationsEndRange() and calls applyMutations().
applyMutations() calls dumpData() that parses the log data and prepares parsed mutations into a CommitTransactionRequest.
Along the way, commit proxy's RequestStream<CommitTransactionRequest> commit is passed to dumpData().