summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream_round_robin.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-08-09 13:54:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-08-09 13:54:33 +0000
commit6876bcdad64aceecb2d4b832c6a2a5e347b17ac0 (patch)
tree613a5440c084527637ef8b5bf4b36c5134c88801 /src/http/ngx_http_upstream_round_robin.h
parent031a6e2906592b4f5bfa6f21eb2fe2d49478139c (diff)
downloadnginx-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.h9
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 {