aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_file_cache.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-03-14 17:37:25 +0300
committerValentin Bartenev <vbart@nginx.com>2015-03-14 17:37:25 +0300
commita7ad493aa67c5f5204afbe50a42108d9e5b07c31 (patch)
tree0c2277cd365146cfcbfc28ed8298620bcc7bf5cb /src/http/ngx_http_file_cache.c
parent547c8f601f80c4dbdd16562fec3cf947581b300a (diff)
downloadnginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.tar.gz
nginx-a7ad493aa67c5f5204afbe50a42108d9e5b07c31.zip
Added support for offloading read() in thread pools.
Diffstat (limited to 'src/http/ngx_http_file_cache.c')
-rw-r--r--src/http/ngx_http_file_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
index 7f289ed33..52cbdda83 100644
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -646,7 +646,7 @@ ngx_http_file_cache_aio_read(ngx_http_request_t *r, ngx_http_cache_t *c)
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
- if (!clcf->aio) {
+ if (clcf->aio != NGX_HTTP_AIO_ON) {
goto noaio;
}