diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-27 09:55:53 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-27 09:55:53 +0000 |
commit | f1cc457d7f562a7c8e7ff9ba28fc143bd175a7dc (patch) | |
tree | f3c4ae29d70a5dfd1f42dfe10174a7cbcbb9bdeb /src/http/ngx_http_core_module.c | |
parent | 0e60e4f73a62bf168dcc0ece770dafa27de35207 (diff) | |
download | nginx-f1cc457d7f562a7c8e7ff9ba28fc143bd175a7dc.tar.gz nginx-f1cc457d7f562a7c8e7ff9ba28fc143bd175a7dc.zip |
*) of.test_only to not open file if only stat() is enough
*) of.failed to return exact name of failed syscall
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 3162d39f8..825c8395c 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1169,6 +1169,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r, of.directio = clcf->directio; of.valid = clcf->open_file_cache_valid; of.min_uses = clcf->open_file_cache_min_uses; + of.test_only = 1; of.errors = clcf->open_file_cache_errors; of.events = clcf->open_file_cache_events; @@ -1177,7 +1178,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r, { if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) { ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, - ngx_open_file_n " \"%s\" failed", path.data); + "%s \"%s\" failed", of.failed, path.data); } continue; |