Mercurial > hg > nginx
comparison src/core/ngx_open_file_cache.c @ 2231:8564129d49b6
*) handle unaligned file part for directio
*) disable sendfile in directio mode
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 05 Sep 2008 14:48:47 +0000 |
parents | 25add486e7aa |
children | 987831d73bd8 |
comparison
equal
deleted
inserted
replaced
2230:25cf039c40bd | 2231:8564129d49b6 |
---|---|
500 | 500 |
501 if (of->directio <= ngx_file_size(&fi)) { | 501 if (of->directio <= ngx_file_size(&fi)) { |
502 if (ngx_directio(fd) == -1) { | 502 if (ngx_directio(fd) == -1) { |
503 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | 503 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, |
504 ngx_directio_n " \"%s\" failed", name); | 504 ngx_directio_n " \"%s\" failed", name); |
505 | |
506 } else { | |
507 of->is_directio = 1; | |
505 } | 508 } |
506 } | 509 } |
507 } | 510 } |
508 | 511 |
509 done: | 512 done: |