mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8674 from gyuho/set-endpoints
clientv3: reset unhealthy on updateAddrs
This commit is contained in:
commit
bc03ce9cab
@ -120,6 +120,7 @@ func (hb *healthBalancer) updateAddrs(eps ...string) {
|
||||
addrs, host2ep := eps2addrs(eps), getHost2ep(eps)
|
||||
hb.mu.Lock()
|
||||
hb.addrs, hb.eps, hb.host2ep = addrs, eps, host2ep
|
||||
hb.unhealthy = make(map[string]time.Time)
|
||||
hb.mu.Unlock()
|
||||
hb.balancer.updateAddrs(eps...)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user