mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
wal: Update WAL Snapshot format to contain ConfState.
This commit is contained in:
@@ -2,6 +2,7 @@ syntax = "proto2";
|
||||
package walpb;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "raft/raftpb/raft.proto";
|
||||
|
||||
option (gogoproto.marshaler_all) = true;
|
||||
option (gogoproto.sizer_all) = true;
|
||||
@@ -14,7 +15,10 @@ message Record {
|
||||
optional bytes data = 3;
|
||||
}
|
||||
|
||||
// Keep in sync with raftpb.SnapshotMetadata.
|
||||
message Snapshot {
|
||||
optional uint64 index = 1 [(gogoproto.nullable) = false];
|
||||
optional uint64 term = 2 [(gogoproto.nullable) = false];
|
||||
// Field populated since >=etcd-3.5.0.
|
||||
optional raftpb.ConfState conf_state = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user