set absolute weight, this fixes bogus "no live upstream" case when last upstream is down while live one has negative weight
Igor Sysoev
14 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
src/http/ngx_http_upstream_round_robin.c
less
more
604
604
}
605
605
606
606
for (i = 0; i < peers->number; i++) {
607
peer[i].current_weight += peer[i].weight;
607
peer[i].current_weight = peer[i].weight;
608
608
}
609
609
}
610
610
}