FastRestore: Fix a compile error

This commit is contained in:
Meng Xu 2019-04-04 17:55:42 -07:00
parent c74bef7601
commit 063f8478e9
1 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ BINARY_SERIALIZABLE( RestoreRole );
extern int FastRestore_Failure_Timeout;
struct RestoreSetRoleRequest;
struct RestoreCommonReply;
// RestoreCommandEnum is also used as the phase ID for CMDUID
enum class RestoreCommandEnum {Init = 0,
@ -198,7 +199,7 @@ struct RestoreSetRoleRequest : TimedRequest {
CMDUID cmdID;
RestoreRole role;
ReplyPromise<RestoreCommandReply> reply;
ReplyPromise<RestoreCommonReply> reply;
RestoreSetRoleRequest() : cmdID(CMDUID()), role(RestoreRole::Invalid) {}
explicit RestoreSetRoleRequest(CMDUID cmdID, RestoreRole role) : cmdID(cmdID), role(role) {}