]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: down flag promoted to a bitmask.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 29 Sep 2016 15:06:05 +0000 (18:06 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 29 Sep 2016 15:06:05 +0000 (18:06 +0300)
It is to be used as a bitmask with various bits set/reset when appropriate.
Any bit set means that the peer should not be used, that is, exactly what
current checks do, no additional changes required.

src/http/ngx_http_upstream_round_robin.h
src/stream/ngx_stream_upstream_round_robin.h

index 6323abfa3f40bc89b89da16be969c3f534b6f1e1..326e84904db7e8a0a2e59d190cd2c8d45e16c42d 100644 (file)
@@ -38,7 +38,7 @@ struct ngx_http_upstream_rr_peer_s {
     ngx_msec_t                      slow_start;
     ngx_msec_t                      start_time;
 
-    ngx_uint_t                      down;          /* unsigned  down:1; */
+    ngx_uint_t                      down;
 
 #if (NGX_HTTP_SSL)
     void                           *ssl_session;
index 9540c1278c74adade32e71e99cd451b3e41758f5..75ffadd6f43025b5e0c30dfb260a6a619f7bad56 100644 (file)
@@ -38,7 +38,7 @@ struct ngx_stream_upstream_rr_peer_s {
     ngx_msec_t                       slow_start;
     ngx_msec_t                       start_time;
 
-    ngx_uint_t                       down;         /* unsigned  down:1; */
+    ngx_uint_t                       down;
 
 #if (NGX_STREAM_SSL)
     void                            *ssl_session;