aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-05 15:28:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-05 15:28:19 +0000
commit4efa705cc0bb62d77d847d7b22846971eddb6a8f (patch)
tree69545c5c063417488e419fb062035e29e3db0d5b /src
parent586aa3899de0dc09cd987045bb238ba3a71acb76 (diff)
downloadnginx-4efa705cc0bb62d77d847d7b22846971eddb6a8f.tar.gz
nginx-4efa705cc0bb62d77d847d7b22846971eddb6a8f.zip
backout r1426: return dynamic weights
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream_round_robin.c2
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 */