FastRestore:Use reference for handleInitVersionBatchRequest func
This commit is contained in:
parent
7903b47b82
commit
2383c29123
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue