| commit | 48a28e2dad8d5190ebae5dbe2f7779f8e17884a1 | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Fri Sep 25 14:17:28 2009 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Fri Sep 25 14:17:28 2009 +0000 |
| tree | 9aff32418924dac3e1f8c479904a2c2c6e6fa909 | |
| parent | 38a7faadfedd84ea7212d69ed610d06022e83928 [diff] [blame] |
uniform ngx_directio_on/off() interface with other file functions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index aa87fd2..5f6e0b2 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c
@@ -525,7 +525,7 @@ of->fd = fd; if (of->directio <= ngx_file_size(&fi)) { - if (ngx_directio_on(fd) == -1) { + if (ngx_directio_on(fd) == NGX_FILE_ERROR) { ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, ngx_directio_on_n " \"%s\" failed", name);