diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-28 17:41:47 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-28 17:41:47 +0000 |
commit | c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7 (patch) | |
tree | d2c80489d1fe646f689966411fc8659355acbd40 /src/http/modules/ngx_http_index_handler.c | |
parent | 877df63f345e48bc2cb61dde86a207748051b81a (diff) | |
download | nginx-c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7.tar.gz nginx-c2bba092eb07ea5fcd2e2ee987e3a304f755a3c7.zip |
nginx-0.0.1-2003-11-28-20:41:47 import
Diffstat (limited to 'src/http/modules/ngx_http_index_handler.c')
-rw-r--r-- | src/http/modules/ngx_http_index_handler.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_index_handler.c b/src/http/modules/ngx_http_index_handler.c index ad3062436..43167673c 100644 --- a/src/http/modules/ngx_http_index_handler.c +++ b/src/http/modules/ngx_http_index_handler.c @@ -117,12 +117,12 @@ ngx_log_debug(r->connection->log, "index cache get: %x" _ cache); redirect.len = cache->data.value.len; if (!(redirect.data = ngx_palloc(r->pool, redirect.len + 1))) { - ngx_http_cache_unlock(ilcf->cache, cache); + ngx_http_cache_unlock(ilcf->cache, cache, r->connection->log); return NGX_HTTP_INTERNAL_SERVER_ERROR; } ngx_memcpy(redirect.data, cache->data.value.data, redirect.len + 1); - ngx_http_cache_unlock(ilcf->cache, cache); + ngx_http_cache_unlock(ilcf->cache, cache, r->connection->log); return ngx_http_internal_redirect(r, &redirect, NULL); } @@ -230,7 +230,8 @@ ngx_log_error(NGX_LOG_DEBUG, r->connection->log, err, { cache->accessed = ngx_cached_time; cache->updated = ngx_cached_time; - ngx_http_cache_unlock(ilcf->cache, cache); + ngx_http_cache_unlock(ilcf->cache, cache, + r->connection->log); return ngx_http_internal_redirect(r, &redirect, NULL); @@ -270,7 +271,7 @@ ngx_log_debug(r->connection->log, "index cache alloc: %x" _ cache); } if (cache) { - ngx_http_cache_unlock(ilcf->cache, cache); + ngx_http_cache_unlock(ilcf->cache, cache, r->connection->log); } return ngx_http_internal_redirect(r, &redirect, NULL); |