mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
fix r1464: test max fails in correct peer
This commit is contained in:
parent
6669702b00
commit
834e447234
@ -514,7 +514,7 @@ ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers)
|
||||
}
|
||||
|
||||
for (i = 0; i < peers->number; i++) {
|
||||
if (peer->max_fails == 0 || peer->fails < peer->max_fails) {
|
||||
if (peer[i].max_fails == 0 || peer[i].fails < peer->max_fails) {
|
||||
peer[i].current_weight += peer[i].weight;
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user