From: Maxim Dounin Date: Thu, 29 Sep 2016 15:06:05 +0000 (+0300) Subject: Modules compatibility: down flag promoted to a bitmask. X-Git-Tag: release-1.11.5~26 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=c7a6a1816347062f05b5ba4168457a0653efa8fc;p=nginx.git Modules compatibility: down flag promoted to a bitmask. 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. --- diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h index 6323abfa3..326e84904 100644 --- a/src/http/ngx_http_upstream_round_robin.h +++ b/src/http/ngx_http_upstream_round_robin.h @@ -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; diff --git a/src/stream/ngx_stream_upstream_round_robin.h b/src/stream/ngx_stream_upstream_round_robin.h index 9540c1278..75ffadd6f 100644 --- a/src/stream/ngx_stream_upstream_round_robin.h +++ b/src/stream/ngx_stream_upstream_round_robin.h @@ -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;