Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request goraft#163 from xiangli-cmu/bug_fix
Browse files Browse the repository at this point in the history
p.server instead of server
  • Loading branch information
xiang90 committed Jan 23, 2014
2 parents 40544a8 + 46491a8 commit b5dbd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer.go
Expand Up @@ -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
Expand Down

0 comments on commit b5dbd6e

Please sign in to comment.