]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: down flag promoted to a bitmask.
authorRuslan Ermilov <ru@nginx.com>
Fri, 22 Sep 2017 19:49:42 +0000 (22:49 +0300)
committerRuslan Ermilov <ru@nginx.com>
Fri, 22 Sep 2017 19:49:42 +0000 (22:49 +0300)
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.

src/http/ngx_http_upstream.h
src/stream/ngx_stream_upstream.h

index c552ac0c6a4b664f3039836b6dad4982476f3419..3e714e5b1958fc237f784f52826b447742b80434 100644 (file)
@@ -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)
index 90076e0c6f959bfd5440664a2dc5d1636b226a62..73947f465c53eb242e21d661bd98adc6945f38ac 100644 (file)
@@ -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)