p.server instead of server

pull/820/head
Xiang Li 2014-01-23 14:13:41 -05:00
parent 6ffaa2484c
commit 46491a8686
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ func (p *Peer) sendAppendEntriesRequest(req *AppendEntriesRequest) {
// If it was unsuccessful then decrement the previous log index and // If it was unsuccessful then decrement the previous log index and
// we'll try again next time. // we'll try again next time.
} else { } 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 // this happens when there is a new leader comes up that this *leader* has not
// known yet. // known yet.
// this server can know until the new leader send a ae with higher term // this server can know until the new leader send a ae with higher term