From f1cc457d7f562a7c8e7ff9ba28fc143bd175a7dc Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 27 Apr 2009 09:55:53 +0000 Subject: *) of.test_only to not open file if only stat() is enough *) of.failed to return exact name of failed syscall --- src/http/ngx_http_script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/http/ngx_http_script.c') diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 9e09f2d13..f292d5a2e 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -1413,6 +1413,7 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e) 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; @@ -1421,7 +1422,7 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e) { if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) { ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, - ngx_file_info_n " \"%s\" failed", value->data); + "%s \"%s\" failed", of.failed, value->data); } switch (code->op) { -- cgit