Browse Source

fix raft_server.go isPeersChanged bug

pull/385/head
Yang zhixiang 8 years ago
parent
commit
4194ae33fd
  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