mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
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.
This commit is contained in:
parent
7797fb04cd
commit
c7a6a18163
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user