From: Igor Sysoev Date: Wed, 5 Sep 2007 15:28:19 +0000 (+0000) Subject: backout r1426: return dynamic weights X-Git-Tag: release-0.6.11~11 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=4efa705cc0bb62d77d847d7b22846971eddb6a8f;p=nginx.git backout r1426: return dynamic weights --- 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 */