Merge branch 'master' of github.com:coreos/etcd

Conflicts:
	server/peer_server_handlers.go
This commit is contained in:
Yicheng Qin
2014-05-08 13:17:51 -07:00
13 changed files with 96 additions and 130 deletions

View File

@@ -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:]...)
}