]> git.kaiwu.me - nginx.git/commit
Merging r4077, r4101, r4102:
authorIgor Sysoev <igor@sysoev.ru>
Fri, 30 Sep 2011 13:57:44 +0000 (13:57 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 30 Sep 2011 13:57:44 +0000 (13:57 +0000)
commit66ef8eba590ab96429356650297e173f41396eff
tree6d21815f4ed1dac2103f9170ecd72f1bb12b26a8
parent86553d2e0a955c97846e621fb62a4d3550982ab1
Merging r4077, r4101, r4102:

open_file_cache related fixes:

*) 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.

*) Bugfix: open_file_cache did not update file info on retest.

If file inode was not changed, cached file information was not updated
on retest.  As a result stale information might be cached forever if file
attributes was changed and/or file was extended.
src/core/ngx_open_file_cache.c
src/os/unix/ngx_file_aio_read.c
src/os/unix/ngx_linux_aio_read.c