Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raft_serverpb: add new ExtraMessage types for the snapshot gen precheck process #1245

Merged
merged 6 commits into from
Jun 7, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions proto/raft_serverpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Loading