From 46491a8686fd993d8a12cc86ffa8b98290026066 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Thu, 23 Jan 2014 14:13:41 -0500 Subject: [PATCH] p.server instead of server --- peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer.go b/peer.go index c1961b5bd8..55893efd04 100644 --- a/peer.go +++ b/peer.go @@ -192,7 +192,7 @@ func (p *Peer) sendAppendEntriesRequest(req *AppendEntriesRequest) { // If it was unsuccessful then decrement the previous log index and // we'll try again next time. } else { - if resp.Term() > server.Term() { + if resp.Term() > p.server.Term() { // this happens when there is a new leader comes up that this *leader* has not // known yet. // this server can know until the new leader send a ae with higher term