FastRestore:Use reference for handleInitVersionBatchRequest func

This commit is contained in:
Meng Xu 2019-10-24 13:54:44 -07:00
parent 7903b47b82
commit 2383c29123
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ void handleFinishRestoreRequest(const RestoreVersionBatchRequest& req, Reference
req.reply.send(RestoreCommonReply(self->id()));
}
void handleInitVersionBatchRequest(RestoreVersionBatchRequest req, Reference<RestoreRoleData> self) {
void handleInitVersionBatchRequest(const RestoreVersionBatchRequest& req, Reference<RestoreRoleData> self) {
self->resetPerVersionBatch();
TraceEvent("FastRestore")
.detail("InitVersionBatch", req.batchID)

View File

@ -54,7 +54,7 @@ struct RestoreSimpleRequest;
typedef std::map<Version, Standalone<VectorRef<MutationRef>>> VersionedMutationsMap;
ACTOR Future<Void> handleHeartbeat(RestoreSimpleRequest req, UID id);
void handleInitVersionBatchRequest(RestoreVersionBatchRequest req, Reference<RestoreRoleData> self);
void handleInitVersionBatchRequest(const RestoreVersionBatchRequest& req, Reference<RestoreRoleData> self);
void handleFinishRestoreRequest(const RestoreVersionBatchRequest& req, Reference<RestoreRoleData> self);
// Helper class for reading restore data from a buffer and throwing the right errors.