changeset 1462:93a70a330e21

backout r1426: return dynamic weights
author Igor Sysoev <igor@sysoev.ru>
date Wed, 05 Sep 2007 15:28:19 +0000
parents 7d5580345205
children 1f6898bb813e
files src/http/ngx_http_upstream_round_robin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_upst
 
         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 */