# HG changeset patch # User Igor Sysoev # Date 1189006099 0 # Node ID 93a70a330e215592e2a25e3bddb0e8f9e3de5993 # Parent 7d5580345205311d4b84654b497fcf647e8d07a5 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 --- 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 */