Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 2824:d106509491b5
fix building --without-http-cache
the bug had been appeared in r2806
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 08 May 2009 20:14:35 +0000 |
parents | 6ad4bba6313e |
children | 3e10674139e4 |
comparison
equal
deleted
inserted
replaced
2823:78342383cb6e | 2824:d106509491b5 |
---|---|
1481 | 1481 |
1482 | 1482 |
1483 static ngx_int_t | 1483 static ngx_int_t |
1484 ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u) | 1484 ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u) |
1485 { | 1485 { |
1486 ngx_int_t rc; | |
1487 ngx_uint_t status; | 1486 ngx_uint_t status; |
1488 ngx_http_upstream_next_t *un; | 1487 ngx_http_upstream_next_t *un; |
1489 | 1488 |
1490 status = u->headers_in.status_n; | 1489 status = u->headers_in.status_n; |
1491 | 1490 |
1501 } | 1500 } |
1502 | 1501 |
1503 #if (NGX_HTTP_CACHE) | 1502 #if (NGX_HTTP_CACHE) |
1504 | 1503 |
1505 if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) { | 1504 if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) { |
1505 ngx_int_t rc; | |
1506 | 1506 |
1507 rc = u->reinit_request(r); | 1507 rc = u->reinit_request(r); |
1508 | 1508 |
1509 if (rc == NGX_OK) { | 1509 if (rc == NGX_OK) { |
1510 rc = ngx_http_upstream_cache_send(r, u); | 1510 rc = ngx_http_upstream_cache_send(r, u); |