mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue