summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2017-09-22 22:49:42 +0300
committerRuslan Ermilov <ru@nginx.com>2017-09-22 22:49:42 +0300
commite7738ce82d1836440fafa9d20dde6c9a28d4ecf4 (patch)
tree35c7192a36af97aeedd40c545bcdc5bbc868f428
parentccd7e1037ef627b8103df9f565e25e3e1795bf8d (diff)
downloadnginx-e7738ce82d1836440fafa9d20dde6c9a28d4ecf4.tar.gz
nginx-e7738ce82d1836440fafa9d20dde6c9a28d4ecf4.tar.bz2
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.
-rw-r--r--src/http/ngx_http_upstream.h2
-rw-r--r--src/stream/ngx_stream_upstream.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index c552ac0c6..3e714e5b1 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -98,8 +98,8 @@ typedef struct {
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)
diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h
index 90076e0c6..73947f465 100644
--- a/src/stream/ngx_stream_upstream.h
+++ b/src/stream/ngx_stream_upstream.h
@@ -58,8 +58,8 @@ typedef struct {
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)