Browse Source

Merge pull request #385 from bedragon/master

fix raft_server.go isPeersChanged bug
pull/395/head
Chris Lu 8 years ago
committed by GitHub
parent
commit
05eda424fc
  1. 2
      weed/server/raft_server.go

2
weed/server/raft_server.go

@ -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…
Cancel
Save