File tree 1 file changed +1
-18
lines changed
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -2915,10 +2915,8 @@ static ngx_int_t
2915
2915
ngx_http_upstream_check_status_handler (ngx_http_request_t * r ) {
2916
2916
size_t buffer_size ;
2917
2917
ngx_int_t rc ;
2918
- ngx_uint_t i , all_up ;
2919
2918
ngx_buf_t * b ;
2920
2919
ngx_chain_t out ;
2921
- ngx_http_upstream_check_peer_t * peer ;
2922
2920
ngx_http_upstream_check_peers_t * peers ;
2923
2921
ngx_http_upstream_check_loc_conf_t * uclcf ;
2924
2922
ngx_http_upstream_check_status_ctx_t * ctx ;
@@ -2981,22 +2979,7 @@ ngx_http_upstream_check_status_handler(ngx_http_request_t *r) {
2981
2979
2982
2980
ctx -> format -> output (b , peers , ctx -> flag );
2983
2981
2984
-
2985
- // check if all peers are up or not
2986
- peer = peers -> peers .elts ;
2987
- all_up = 1 ;
2988
- for (i = 0 ; i < peers -> peers .nelts ; i ++ ) {
2989
- if (peer [i ].shm -> down ) {
2990
- all_up = 0 ;
2991
- break ;
2992
- }
2993
- }
2994
-
2995
- if (all_up == 1 ) {
2996
- r -> headers_out .status = NGX_HTTP_OK ;
2997
- } else {
2998
- r -> headers_out .status = NGX_HTTP_SERVICE_UNAVAILABLE ;
2999
- }
2982
+ r -> headers_out .status = NGX_HTTP_OK ;
3000
2983
r -> headers_out .content_length_n = b -> last - b -> pos ;
3001
2984
3002
2985
if (r -> headers_out .content_length_n == 0 ) {
You can’t perform that action at this time.
0 commit comments