Skip to content

Commit abcc8db

Browse files
committed
[FAB-11918] Add raft index to block metadata
This CR adds index of etcd/raft entry to be block metadata so that we know where to continue rafting upon reboot. Change-Id: If6388b7612741fbc4fa31c95881937bd8d2a82cc Signed-off-by: Jay Guo <guojiannan1101@gmail.com>
1 parent 5a27280 commit abcc8db

File tree

2 files changed

+64
-48
lines changed

2 files changed

+64
-48
lines changed

protos/orderer/etcdraft/configuration.pb.go

Lines changed: 61 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/orderer/etcdraft/configuration.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ message Options {
3838

3939
// RaftMetadata stores data used by the Raft OSNs when
4040
// coordinating with each other, to be serialized into
41-
// block meta dta field and used after failres and restarts
41+
// block meta dta field and used after failres and restarts.
4242
message RaftMetadata {
4343
// Maintains a mapping between the cluster's OSNs
4444
// and their Raft IDs.
4545
map<uint64, Consenter> consenters = 1;
4646
// Carries the Raft ID value that will be assigned
4747
// to the next OSN that will join this cluster.
4848
uint64 nextConsenterID = 2;
49+
// Index of etcd/raft entry for current block.
50+
uint64 raftIndex = 3;
4951
}

0 commit comments

Comments
 (0)