Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_file_aio_read.c @ 4076:37da005a5808
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 05 Sep 2011 16:36:19 +0000 |
parents | 04cfc09b8b8d |
children | 59b99f217c6d |
comparison
equal
deleted
inserted
replaced
4075:39574a944f66 | 4076:37da005a5808 |
---|---|
83 ngx_set_errno(aio->err); | 83 ngx_set_errno(aio->err); |
84 | 84 |
85 if (aio->err == 0) { | 85 if (aio->err == 0) { |
86 return aio->nbytes; | 86 return aio->nbytes; |
87 } | 87 } |
88 | |
89 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, | |
90 "aio read \"%s\" failed", file->name.data); | |
88 | 91 |
89 return NGX_ERROR; | 92 return NGX_ERROR; |
90 } | 93 } |
91 | 94 |
92 ngx_memzero(&aio->aiocb, sizeof(struct aiocb)); | 95 ngx_memzero(&aio->aiocb, sizeof(struct aiocb)); |