diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-10-01 14:45:31 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-10-01 14:45:31 +0000 |
commit | 834e447234c60812036c77cb78c0fbcfeee7eb5c (patch) | |
tree | 62eb4d1353405d7a5f222b6f93bad2f6c1bb513d /src | |
parent | 6669702b005516ab432a4fd288f20d8c7060d9c1 (diff) | |
download | nginx-834e447234c60812036c77cb78c0fbcfeee7eb5c.tar.gz nginx-834e447234c60812036c77cb78c0fbcfeee7eb5c.zip |
fix r1464: test max fails in correct peer
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream_round_robin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c index 43c2a50f1..d2a894799 100644 --- a/src/http/ngx_http_upstream_round_robin.c +++ b/src/http/ngx_http_upstream_round_robin.c @@ -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 { |