Mercurial > hg > nginx
diff src/http/modules/proxy/ngx_http_proxy_cache.c @ 186:c1f3a3c7c5db
nginx-0.0.1-2003-11-17-00:49:42 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 16 Nov 2003 21:49:42 +0000 |
parents | d5f50cefc322 |
children | c966c09be66b |
line wrap: on
line diff
--- a/src/http/modules/proxy/ngx_http_proxy_cache.c +++ b/src/http/modules/proxy/ngx_http_proxy_cache.c @@ -270,11 +270,11 @@ void ngx_http_proxy_cache_busy_lock(ngx_ if (p->cache->ctx.file.fd != NGX_INVALID_FILE && !p->cache->ctx.file.info_valid) { - if (ngx_stat_fd(p->cache->ctx.file.fd, &p->cache->ctx.file.info) + if (ngx_fd_info(p->cache->ctx.file.fd, &p->cache->ctx.file.info) == NGX_FILE_ERROR) { ngx_log_error(NGX_LOG_CRIT, p->request->connection->log, ngx_errno, - ngx_stat_fd_n " \"%s\" failed", + ngx_fd_info_n " \"%s\" failed", p->cache->ctx.file.name.data); ngx_http_proxy_finalize_request(p, NGX_HTTP_INTERNAL_SERVER_ERROR); return; @@ -322,7 +322,7 @@ static void ngx_http_proxy_cache_look_co *ctx = p->cache->ctx; rc = ngx_http_cache_open_file(p->request, ctx, - ngx_file_uniq((&p->cache->ctx.file.info))); + ngx_file_uniq(&p->cache->ctx.file.info)); if (rc == NGX_HTTP_CACHE_THE_SAME) { p->try_busy_lock = 1;