Skip to content

Backup and Restore Code

Jingyu Zhou edited this page Oct 24, 2021 · 2 revisions

Backup process

BackupLogRangeTaskFunc::_execute, which divides the range into smaller ones, each calls readCommitted().

Restore process

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().