From 943153273062a8e092c2ed9bb8fb1c18f1f34797 Mon Sep 17 00:00:00 2001 From: Kostas Christidis Date: Thu, 10 May 2018 10:57:19 -0400 Subject: [PATCH] raftexample: Fix publish snapshot error message The error message is different to the condition it checks for. This PR modifies the error message accordingly. Closes #9717. Signed-off-by: Kostas Christidis --- 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 a57305746..f6e988cc9 100644 --- a/contrib/raftexample/raft.go +++ b/contrib/raftexample/raft.go @@ -336,7 +336,7 @@ func (rc *raftNode) publishSnapshot(snapshotToSave raftpb.Snapshot) { defer log.Printf("finished publishing snapshot at index %d", rc.snapshotIndex) if snapshotToSave.Metadata.Index <= rc.appliedIndex { - log.Fatalf("snapshot index [%d] should > progress.appliedIndex [%d] + 1", snapshotToSave.Metadata.Index, rc.appliedIndex) + log.Fatalf("snapshot index [%d] should > progress.appliedIndex [%d]", snapshotToSave.Metadata.Index, rc.appliedIndex) } rc.commitC <- nil // trigger kvstore to load snapshot