aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/proxy/ngx_http_proxy_cache.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-20 17:36:43 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-20 17:36:43 +0000
commit1ef225254ef3f7fc5470289bdeabad2e31507d55 (patch)
tree5a11f95ce27d89ff01dbd75305fe5dd41857ad4f /src/http/modules/proxy/ngx_http_proxy_cache.c
parentbb6ec8c9fd4d23848ac3dddb1296d8fac5c99da8 (diff)
downloadnginx-1ef225254ef3f7fc5470289bdeabad2e31507d55.tar.gz
nginx-1ef225254ef3f7fc5470289bdeabad2e31507d55.zip
nginx-0.0.1-2003-11-20-20:36:43 import
Diffstat (limited to 'src/http/modules/proxy/ngx_http_proxy_cache.c')
-rw-r--r--src/http/modules/proxy/ngx_http_proxy_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/modules/proxy/ngx_http_proxy_cache.c b/src/http/modules/proxy/ngx_http_proxy_cache.c
index 958471b76..05fec3a19 100644
--- a/src/http/modules/proxy/ngx_http_proxy_cache.c
+++ b/src/http/modules/proxy/ngx_http_proxy_cache.c
@@ -252,6 +252,8 @@ void ngx_http_proxy_cache_busy_lock(ngx_http_proxy_ctx_t *p)
rc = ngx_http_busy_lock_cachable(p->lcf->busy_lock, &p->busy_lock,
p->try_busy_lock);
+ngx_log_debug(p->request->connection->log, "LOCK CACHABLE: %d" _ rc);
+
if (rc == NGX_OK) {
if (p->try_busy_lock) {
p->busy_locked = 1;
@@ -344,7 +346,7 @@ static void ngx_http_proxy_cache_look_complete_request(ngx_http_proxy_ctx_t *p)
rc = ngx_http_cache_open_file(ctx, ngx_file_uniq(&p->cache->ctx.file.info));
- if (rc == NGX_HTTP_CACHE_THE_SAME) {
+ if (rc == NGX_DECLINED || rc == NGX_HTTP_CACHE_THE_SAME) {
p->try_busy_lock = 1;
p->busy_lock.time = 0;
ngx_http_proxy_cache_busy_lock(p);