Mercurial > hg > nginx
comparison src/http/ngx_http_script.c @ 1799:0b5b94805d26
optimization
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Dec 2007 20:32:43 +0000 |
parents | 25c93614e6b9 |
children | 782af1038115 |
comparison
equal
deleted
inserted
replaced
1798:0379d1fc8701 | 1799:0b5b94805d26 |
---|---|
980 of.min_uses = clcf->open_file_cache_min_uses; | 980 of.min_uses = clcf->open_file_cache_min_uses; |
981 of.errors = clcf->open_file_cache_errors; | 981 of.errors = clcf->open_file_cache_errors; |
982 of.events = clcf->open_file_cache_events; | 982 of.events = clcf->open_file_cache_events; |
983 | 983 |
984 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) | 984 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) |
985 == NGX_ERROR) | 985 != NGX_OK) |
986 { | 986 { |
987 if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) { | 987 if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) { |
988 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, | 988 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, |
989 ngx_file_info_n " \"%s\" failed", value->data); | 989 ngx_file_info_n " \"%s\" failed", value->data); |
990 } | 990 } |