Mercurial > hg > nginx
changeset 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 | 6d1f3bb72b07 |
children | beeac3302e45 |
files | src/http/ngx_http_upstream.h src/stream/ngx_stream_upstream.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.h Fri Sep 22 18:37:49 2017 +0300 +++ b/src/http/ngx_http_upstream.h Fri Sep 22 22:49:42 2017 +0300 @@ -98,8 +98,8 @@ ngx_uint_t max_fails; time_t fail_timeout; ngx_msec_t slow_start; + ngx_uint_t down; - unsigned down:1; unsigned backup:1; NGX_COMPAT_BEGIN(6)
--- a/src/stream/ngx_stream_upstream.h Fri Sep 22 18:37:49 2017 +0300 +++ b/src/stream/ngx_stream_upstream.h Fri Sep 22 22:49:42 2017 +0300 @@ -58,8 +58,8 @@ ngx_uint_t max_fails; time_t fail_timeout; ngx_msec_t slow_start; + ngx_uint_t down; - unsigned down:1; unsigned backup:1; NGX_COMPAT_BEGIN(4)