diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-06-03 23:22:41 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-06-03 23:22:41 +0000 |
| commit | 1ba6ecd4f3c5f052ee4d39ef73831229c2312202 (patch) | |
| tree | 96f5c187703fa7100bf58e1141ff65bd9aecafe8 /src/http/ngx_http_upstream_round_robin.h | |
| parent | 4cb4e8d17934cdc3718a02f5dcf56983a8cba304 (diff) | |
| download | nginx-1ba6ecd4f3c5f052ee4d39ef73831229c2312202.tar.gz nginx-1ba6ecd4f3c5f052ee4d39ef73831229c2312202.tar.bz2 | |
Upstream: weights support in ip_hash balancer.
Diffstat (limited to 'src/http/ngx_http_upstream_round_robin.h')
| -rw-r--r-- | src/http/ngx_http_upstream_round_robin.h | 6 |
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; |
