mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 19:42:39 +08:00
NGX_OPEN_FILE_DIRECTIO_OFF
This commit is contained in:
parent
84ab8f2bc8
commit
ad1e123bfa
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user