Skip to content

Commit

Permalink
Fixing integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Jul 17, 2014
1 parent 725e1d5 commit 35f5fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ func (r *Raft) processLog(l *Log, future *logFuture, precommit bool) {
r.logger.Printf("[DEBUG] raft: Node %v updated peer set (%v): %v", r.localAddr, l.Type, peers)

// If the peer set does not include us, remove all other peers
removeSelf := !PeerContained(peers, r.localAddr)
removeSelf := !PeerContained(peers, r.localAddr) && l.Type == LogRemovePeer
if removeSelf {
r.peers = nil
r.peerStore.SetPeers([]net.Addr{r.localAddr})
Expand Down

0 comments on commit 35f5fa0

Please # to comment.