mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-25 19:49:10 +08: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(oldPeers)
|
||||
|
||||
return oldPeers, reflect.DeepEqual(peers, oldPeers)
|
||||
return oldPeers, !reflect.DeepEqual(peers, oldPeers)
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user