From 4f65a05d1819392acdef365f387fa078baaabaab Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 5 Sep 2011 16:36:19 +0000 Subject: Bugfix: open_file_cache lost is_directio flag. On file retest open_file_cache lost is_directio if file wasn't changed. This caused unaligned operations under Linux to fail with EINVAL. It wasn't noticeable with AIO though, as errors wasn't properly logged. --- src/os/unix/ngx_file_aio_read.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/os/unix/ngx_file_aio_read.c') diff --git a/src/os/unix/ngx_file_aio_read.c b/src/os/unix/ngx_file_aio_read.c index ef7a46107..557f9de6a 100644 --- a/src/os/unix/ngx_file_aio_read.c +++ b/src/os/unix/ngx_file_aio_read.c @@ -86,6 +86,9 @@ ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, return aio->nbytes; } + ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, + "aio read \"%s\" failed", file->name.data); + return NGX_ERROR; } -- cgit