diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2011-12-06 13:23:37 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2011-12-06 13:23:37 +0000 |
commit | 8618370487c4b5bc332af17a610a0cb93f89fc4c (patch) | |
tree | 7a21d32aa2668888da7f2bfa1ec2f634025261aa /src | |
parent | 08f2256b29f6cfe24b845fa5a7d1485fce634c6b (diff) | |
download | nginx-8618370487c4b5bc332af17a610a0cb93f89fc4c.tar.gz nginx-8618370487c4b5bc332af17a610a0cb93f89fc4c.zip |
Fix for read_head with try_files and open_file_cache.
The of.read_ahead wasn't set in try_files code path, causing read_ahead
directive to be a nop if try_files and open_file_cache were used.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index e66682327..3c5711748 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1289,6 +1289,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r, ngx_memzero(&of, sizeof(ngx_open_file_info_t)); + of.read_ahead = clcf->read_ahead; of.directio = clcf->directio; of.valid = clcf->open_file_cache_valid; of.min_uses = clcf->open_file_cache_min_uses; |