comparison src/core/ngx_open_file_cache.c @ 2129:25add486e7aa

directio
author Igor Sysoev <igor@sysoev.ru>
date Wed, 30 Jul 2008 12:34:04 +0000
parents ee2fecdfdef7
children 8564129d49b6
comparison
equal deleted inserted replaced
2128:345a014436d4 2129:25add486e7aa
495 495
496 of->fd = NGX_INVALID_FILE; 496 of->fd = NGX_INVALID_FILE;
497 497
498 } else { 498 } else {
499 of->fd = fd; 499 of->fd = fd;
500
501 if (of->directio <= ngx_file_size(&fi)) {
502 if (ngx_directio(fd) == -1) {
503 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
504 ngx_directio_n " \"%s\" failed", name);
505 }
506 }
500 } 507 }
501 508
502 done: 509 done:
503 510
504 of->uniq = ngx_file_uniq(&fi); 511 of->uniq = ngx_file_uniq(&fi);