diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-09-05 15:28:19 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-05 15:28:19 +0000 |
| commit | 4efa705cc0bb62d77d847d7b22846971eddb6a8f (patch) | |
| tree | 69545c5c063417488e419fb062035e29e3db0d5b | |
| parent | 586aa3899de0dc09cd987045bb238ba3a71acb76 (diff) | |
| download | nginx-4efa705cc0bb62d77d847d7b22846971eddb6a8f.tar.gz nginx-4efa705cc0bb62d77d847d7b22846971eddb6a8f.tar.bz2 | |
backout r1426: return dynamic weights
| -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 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 */ |
