comparison src/stream/ngx_stream_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 54cf51c4f07a
children d27aa9060c95
comparison
equal deleted inserted replaced
7111:6d1f3bb72b07 7112:5a3ab1b5804b
56 ngx_uint_t weight; 56 ngx_uint_t weight;
57 ngx_uint_t max_conns; 57 ngx_uint_t max_conns;
58 ngx_uint_t max_fails; 58 ngx_uint_t max_fails;
59 time_t fail_timeout; 59 time_t fail_timeout;
60 ngx_msec_t slow_start; 60 ngx_msec_t slow_start;
61 ngx_uint_t down;
61 62
62 unsigned down:1;
63 unsigned backup:1; 63 unsigned backup:1;
64 64
65 NGX_COMPAT_BEGIN(4) 65 NGX_COMPAT_BEGIN(4)
66 NGX_COMPAT_END 66 NGX_COMPAT_END
67 } ngx_stream_upstream_server_t; 67 } ngx_stream_upstream_server_t;