comparison src/core/ngx_open_file_cache.c @ 3164:b1b1775698d5

uniform ngx_directio_on/off() interface with other file functions
author Igor Sysoev <igor@sysoev.ru>
date Fri, 25 Sep 2009 14:17:28 +0000
parents b6d588fa3ee9
children 975f0558aab3 8944c3e318ab
comparison
equal deleted inserted replaced
3163:34cbd6e86218 3164:b1b1775698d5
523 523
524 } else { 524 } else {
525 of->fd = fd; 525 of->fd = fd;
526 526
527 if (of->directio <= ngx_file_size(&fi)) { 527 if (of->directio <= ngx_file_size(&fi)) {
528 if (ngx_directio_on(fd) == -1) { 528 if (ngx_directio_on(fd) == NGX_FILE_ERROR) {
529 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, 529 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
530 ngx_directio_on_n " \"%s\" failed", name); 530 ngx_directio_on_n " \"%s\" failed", name);
531 531
532 } else { 532 } else {
533 of->is_directio = 1; 533 of->is_directio = 1;