fix raft_server.go isPeersChanged bug

This commit is contained in:
Yang zhixiang 2016-11-03 15:46:59 +08:00
parent 88d0df523e
commit 4194ae33fd

View file

@ -144,7 +144,7 @@ func isPeersChanged(dir string, self string, peers []string) (oldPeers []string,
sort.Strings(peers)
sort.Strings(oldPeers)
return oldPeers, reflect.DeepEqual(peers, oldPeers)
return oldPeers, !reflect.DeepEqual(peers, oldPeers)
}