mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
proxy/tcpproxy: fix dup unweighted remotes (#11552)
This commit is contained in:
@@ -117,7 +117,7 @@ func (tp *TCPProxy) pick() *remote {
|
||||
bestPr = r.srv.Priority
|
||||
w = 0
|
||||
weighted = nil
|
||||
unweighted = []*remote{r}
|
||||
unweighted = nil
|
||||
fallthrough
|
||||
case r.srv.Priority == bestPr:
|
||||
if r.srv.Weight > 0 {
|
||||
|
||||
Reference in New Issue
Block a user