comparison src/http/ngx_http_upstream.h @ 7112:5a3ab1b5804b

Modules compatibility: down flag promoted to a bitmask. It is to be used as a bitmask with various bits set/reset when appropriate. 63b8b157b776 made a similar change to ngx_http_upstream_rr_peer_t.down and ngx_stream_upstream_rr_peer_t.down.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 22 Sep 2017 22:49:42 +0300
parents fa56ab75cffc
children d0d32b33167d
comparison
equal deleted inserted replaced
7111:6d1f3bb72b07 7112:5a3ab1b5804b
96 ngx_uint_t weight; 96 ngx_uint_t weight;
97 ngx_uint_t max_conns; 97 ngx_uint_t max_conns;
98 ngx_uint_t max_fails; 98 ngx_uint_t max_fails;
99 time_t fail_timeout; 99 time_t fail_timeout;
100 ngx_msec_t slow_start; 100 ngx_msec_t slow_start;
101 101 ngx_uint_t down;
102 unsigned down:1; 102
103 unsigned backup:1; 103 unsigned backup:1;
104 104
105 NGX_COMPAT_BEGIN(6) 105 NGX_COMPAT_BEGIN(6)
106 NGX_COMPAT_END 106 NGX_COMPAT_END
107 } ngx_http_upstream_server_t; 107 } ngx_http_upstream_server_t;