Merge pull request #385 from bedragon/master

fix raft_server.go isPeersChanged bug
This commit is contained in:
Chris Lu 2016-11-03 10:08:13 -07:00 committed by GitHub
commit 05eda424fc

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)
}