summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream_round_robin.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-07-02 16:41:13 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-07-02 16:41:13 +0000
commiteaf3544e15cc7551efa128ed5bb67851cb57d11e (patch)
treee20e507b071e05890536f6d91319ffcaa0858ffa /src/http/ngx_http_upstream_round_robin.h
parentbb612f1336ec34f6f73f5b4b0b8cb3d9fb99e53f (diff)
downloadnginx-eaf3544e15cc7551efa128ed5bb67851cb57d11e.tar.gz
nginx-eaf3544e15cc7551efa128ed5bb67851cb57d11e.tar.bz2
Merge of r4655, r4656, r4657, r4695, r4696: upstream changes.
*) Upstream: least_conn balancer module. *) Upstream: weights and IPv6 support in ip_hash balancer. *) Upstream keepalive: "single" parameter deprecated.
Diffstat (limited to 'src/http/ngx_http_upstream_round_robin.h')
-rw-r--r--src/http/ngx_http_upstream_round_robin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h
index 4de3caea1..3f8cbf87f 100644
--- a/src/http/ngx_http_upstream_round_robin.h
+++ b/src/http/ngx_http_upstream_round_robin.h
@@ -41,13 +41,17 @@ typedef struct {
typedef struct ngx_http_upstream_rr_peers_s ngx_http_upstream_rr_peers_t;
struct ngx_http_upstream_rr_peers_s {
- ngx_uint_t single; /* unsigned single:1; */
ngx_uint_t number;
ngx_uint_t last_cached;
/* ngx_mutex_t *mutex; */
ngx_connection_t **cached;
+ ngx_uint_t total_weight;
+
+ unsigned single:1;
+ unsigned weighted:1;
+
ngx_str_t *name;
ngx_http_upstream_rr_peers_t *next;