From 6876bcdad64aceecb2d4b832c6a2a5e347b17ac0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 9 Aug 2007 13:54:33 +0000 Subject: backup upstream servers --- src/http/ngx_http_upstream_round_robin.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/http/ngx_http_upstream_round_robin.h') 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 { -- cgit