commit | 8633e1fa0695ba988a9250c9c4af7ad3d19ae1f4 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri Sep 05 14:48:47 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri Sep 05 14:48:47 2008 +0000 |
tree | 2bebe79cee832fc58d309a4d7f591138b03d62a4 | |
parent | 98007c1761efa283dab39b6ea7b9f303d343a459 [diff] [blame] |
*) handle unaligned file part for directio *) disable sendfile in directio mode
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index f2e8afc..614484d 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c
@@ -502,6 +502,9 @@ 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; } } }