# HG changeset patch # User Igor Sysoev # Date 1224163860 0 # Node ID 732bf367dc085b6aa7891841a2a6a6595a704fa7 # Parent 1c758cc43280786c9d9830a727bf586226fdad1c NGX_OPEN_FILE_DIRECTIO_OFF diff --git a/src/core/ngx_open_file_cache.h b/src/core/ngx_open_file_cache.h --- a/src/core/ngx_open_file_cache.h +++ b/src/core/ngx_open_file_cache.h @@ -12,6 +12,9 @@ #define _NGX_OPEN_FILE_CACHE_H_INCLUDED_ +#define NGX_OPEN_FILE_DIRECTIO_OFF NGX_MAX_OFF_T_VALUE + + typedef struct { ngx_fd_t fd; ngx_file_uniq_t uniq; diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -433,7 +433,7 @@ ngx_http_log_script_write(ngx_http_reque of.log = 1; of.valid = llcf->open_file_cache_valid; of.min_uses = llcf->open_file_cache_min_uses; - of.directio = NGX_MAX_OFF_T_VALUE; + of.directio = NGX_OPEN_FILE_DIRECTIO_OFF; if (ngx_open_cached_file(llcf->open_file_cache, &log, &of, r->pool) != NGX_OK) diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3470,7 +3470,7 @@ ngx_http_core_directio(ngx_conf_t *cf, n value = cf->args->elts; if (ngx_strcmp(value[1].data, "off") == 0) { - clcf->directio = NGX_MAX_OFF_T_VALUE; + clcf->directio = NGX_OPEN_FILE_DIRECTIO_OFF; return NGX_CONF_OK; }