mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge branch 'master' of github.com:coreos/etcd
Conflicts: server/peer_server_handlers.go
This commit is contained in:
@@ -696,8 +696,8 @@ func (s *PeerServer) monitorActiveSize() {
|
||||
|
||||
// Retrieve target active size and actual active size.
|
||||
activeSize := s.ClusterConfig().ActiveSize
|
||||
peerCount := s.registry.Count()
|
||||
peers := s.registry.Names()
|
||||
peerCount := s.registry.Count()
|
||||
if index := sort.SearchStrings(peers, s.Config.Name); index < len(peers) && peers[index] == s.Config.Name {
|
||||
peers = append(peers[:index], peers[index+1:]...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user