p.server instead of server
parent
6ffaa2484c
commit
46491a8686
2
peer.go
2
peer.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue