From 4efa705cc0bb62d77d847d7b22846971eddb6a8f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 5 Sep 2007 15:28:19 +0000 Subject: backout r1426: return dynamic weights --- src/http/ngx_http_upstream_round_robin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c index 441a1aaab..106d6450e 100644 --- a/src/http/ngx_http_upstream_round_robin.c +++ b/src/http/ngx_http_upstream_round_robin.c @@ -515,7 +515,7 @@ ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers) for (i = 0; i < peers->number; i++) { if (peer[i].fails == 0) { - peer[i].current_weight = peer[i].weight; + peer[i].current_weight += peer[i].weight; } else { /* 1 allows to go to quick recovery when all peers failed */ -- cgit