mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #385 from bedragon/master
fix raft_server.go isPeersChanged bug
This commit is contained in:
commit
05eda424fc
|
@ -144,7 +144,7 @@ func isPeersChanged(dir string, self string, peers []string) (oldPeers []string,
|
||||||
sort.Strings(peers)
|
sort.Strings(peers)
|
||||||
sort.Strings(oldPeers)
|
sort.Strings(oldPeers)
|
||||||
|
|
||||||
return oldPeers, reflect.DeepEqual(peers, oldPeers)
|
return oldPeers, !reflect.DeepEqual(peers, oldPeers)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue