From f08ad48b7b1b7a4a3f429bcf4ee2cceb14b52d2e Mon Sep 17 00:00:00 2001 From: Meng Xu Date: Fri, 18 Oct 2019 21:50:12 -0700 Subject: [PATCH] FastRestore:Applier:handleSendMutationVectorRequest:Add comment --- fdbserver/RestoreApplier.actor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdbserver/RestoreApplier.actor.cpp b/fdbserver/RestoreApplier.actor.cpp index 3f4b10cbe6..a8d599ca62 100644 --- a/fdbserver/RestoreApplier.actor.cpp +++ b/fdbserver/RestoreApplier.actor.cpp @@ -93,6 +93,8 @@ ACTOR Future restoreApplierCore(RestoreApplierInterface applierInterf, int // Only one actor can process mutations from the same file ACTOR static Future handleSendMutationVectorRequest(RestoreSendMutationVectorVersionedRequest req, Reference self) { + // Assume: self->processedFileState[req.fileIndex] will not be erased while the actor is active. + // Note: Insert new items into processedFileState will not invalidate the reference. state NotifiedVersion& curFilePos = self->processedFileState[req.fileIndex]; TraceEvent("FastRestore")