]> git.kaiwu.me - nginx.git/commitdiff
NGX_OPEN_FILE_DIRECTIO_OFF
authorIgor Sysoev <igor@sysoev.ru>
Thu, 16 Oct 2008 13:31:00 +0000 (13:31 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 16 Oct 2008 13:31:00 +0000 (13:31 +0000)
src/core/ngx_open_file_cache.h
src/http/modules/ngx_http_log_module.c
src/http/ngx_http_core_module.c

index af39094a3e06235b7ae1534588a30115dbe9d693..a8d221b55340d7894cfd44c52761079eeafc3a4d 100644 (file)
@@ -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;
index 80bf22180b1d95c3481b58f0b89c0ff8365e6be8..7a85d1b75b2b02277eeffde65ecc41c0be92c259 100644 (file)
@@ -433,7 +433,7 @@ ngx_http_log_script_write(ngx_http_request_t *r, ngx_http_log_script_t *script,
     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)
index 1d8a5522297de3f2ffe8acbecc9413a70575b6e3..dd76b99e375140f51be7d3f6172704b5e4a74002 100644 (file)
@@ -3470,7 +3470,7 @@ ngx_http_core_directio(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
     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;
     }