diff --git a/proto/raft_serverpb.proto b/proto/raft_serverpb.proto index 49d513cee..8afcfc609 100644 --- a/proto/raft_serverpb.proto +++ b/proto/raft_serverpb.proto @@ -252,6 +252,9 @@ enum ExtraMessageType { MsgGcPeerResponse = 12; MsgFlushMemtable = 13; MsgRefreshBuckets = 14; + // Messages for the snapshot gen precheck process. + MsgSnapGenPrecheckRequest = 15; + MsgSnapGenPrecheckResponse = 16; } message FlushMemtable { @@ -293,4 +296,7 @@ message ExtraMessage { AvailabilityContext availability_context = 8; // notice the peer to refresh buckets version RefreshBuckets refresh_buckets = 9; + // snap_gen_precheck_passed is used to indicate the precheck result when + // a follower responds to a leader's snapshot gen precheck request. + bool snap_gen_precheck_passed = 10; } diff --git a/scripts/proto.lock b/scripts/proto.lock index fd59f9c7f..c44fb3ee6 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -17491,6 +17491,14 @@ { "name": "MsgRefreshBuckets", "integer": 14 + }, + { + "name": "MsgSnapGenPrecheckRequest", + "integer": 15 + }, + { + "name": "MsgSnapGenPrecheckResponse", + "integer": 16 } ] } @@ -18199,6 +18207,11 @@ "id": 9, "name": "refresh_buckets", "type": "RefreshBuckets" + }, + { + "id": 10, + "name": "snap_gen_precheck_passed", + "type": "bool" } ] }