From 0303480b1a45b58d09efb69a7913c01cd365396b Mon Sep 17 00:00:00 2001 From: Jingguo Yao Date: Tue, 1 May 2018 11:22:36 +0800 Subject: [PATCH] contrib/raftexample: fix typo --- contrib/raftexample/raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/raftexample/raft.go b/contrib/raftexample/raft.go index 08fba7251..5b762aa29 100644 --- a/contrib/raftexample/raft.go +++ b/contrib/raftexample/raft.go @@ -130,7 +130,7 @@ func (rc *raftNode) entriesToApply(ents []raftpb.Entry) (nents []raftpb.Entry) { } firstIdx := ents[0].Index if firstIdx > rc.appliedIndex+1 { - log.Fatalf("first index of committed entry[%d] should <= progress.appliedIndex[%d] 1", firstIdx, rc.appliedIndex) + log.Fatalf("first index of committed entry[%d] should <= progress.appliedIndex[%d]+1", firstIdx, rc.appliedIndex) } if rc.appliedIndex-firstIdx+1 < uint64(len(ents)) { nents = ents[rc.appliedIndex-firstIdx+1:]