diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-09-05 14:48:47 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-09-05 14:48:47 +0000 |
commit | 8633e1fa0695ba988a9250c9c4af7ad3d19ae1f4 (patch) | |
tree | 2bebe79cee832fc58d309a4d7f591138b03d62a4 /src/core/ngx_open_file_cache.c | |
parent | 98007c1761efa283dab39b6ea7b9f303d343a459 (diff) | |
download | nginx-8633e1fa0695ba988a9250c9c4af7ad3d19ae1f4.tar.gz nginx-8633e1fa0695ba988a9250c9c4af7ad3d19ae1f4.zip |
*) handle unaligned file part for directio
*) disable sendfile in directio mode
Diffstat (limited to 'src/core/ngx_open_file_cache.c')
-rw-r--r-- | src/core/ngx_open_file_cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index f2e8afc51..614484d93 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c @@ -502,6 +502,9 @@ ngx_open_and_stat_file(u_char *name, ngx_open_file_info_t *of, ngx_log_t *log) if (ngx_directio(fd) == -1) { ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, ngx_directio_n " \"%s\" failed", name); + + } else { + of->is_directio = 1; } } } |