diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-08-09 13:54:33 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-09 13:54:33 +0000 |
| commit | 6876bcdad64aceecb2d4b832c6a2a5e347b17ac0 (patch) | |
| tree | 613a5440c084527637ef8b5bf4b36c5134c88801 /src/http/ngx_http_upstream_round_robin.h | |
| parent | 031a6e2906592b4f5bfa6f21eb2fe2d49478139c (diff) | |
| download | nginx-6876bcdad64aceecb2d4b832c6a2a5e347b17ac0.tar.gz nginx-6876bcdad64aceecb2d4b832c6a2a5e347b17ac0.tar.bz2 | |
backup upstream servers
Diffstat (limited to 'src/http/ngx_http_upstream_round_robin.h')
| -rw-r--r-- | src/http/ngx_http_upstream_round_robin.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h index 15e69153a..a9ab1cf6e 100644 --- a/src/http/ngx_http_upstream_round_robin.h +++ b/src/http/ngx_http_upstream_round_robin.h @@ -35,7 +35,10 @@ typedef struct { } ngx_http_upstream_rr_peer_t; -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; @@ -44,8 +47,10 @@ typedef struct { ngx_str_t *name; + ngx_http_upstream_rr_peers_t *next; + ngx_http_upstream_rr_peer_t peer[1]; -} ngx_http_upstream_rr_peers_t; +}; typedef struct { |
