mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
set absolute weight, this fixes bogus "no live upstream" case when
last upstream is down while live one has negative weight
This commit is contained in:
parent
c2e854e198
commit
665b9fd2e2
@ -605,7 +605,7 @@ ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers)
|
||||
}
|
||||
|
||||
for (i = 0; i < peers->number; i++) {
|
||||
peer[i].current_weight += peer[i].weight;
|
||||
peer[i].current_weight = peer[i].weight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user