aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-05-16 20:37:38 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-05-16 20:37:38 +0300
commitbf838dc9dfca4e80b883c2e659c65f90fc1526a3 (patch)
tree2711a8cb90292ac9efccbb651f9ddd6c4b02bd4f /src
parent099d74cf3d62a092e51ef7dbba9dace68aca7209 (diff)
downloadnginx-bf838dc9dfca4e80b883c2e659c65f90fc1526a3.tar.gz
nginx-bf838dc9dfca4e80b883c2e659c65f90fc1526a3.zip
Cache: fixed updating bypassed cached errors (ticket #827).
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_file_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
index 37cd377d0..38b695ed1 100644
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -1403,6 +1403,7 @@ ngx_http_file_cache_update(ngx_http_request_t *r, ngx_temp_file_t *tf)
ngx_shmtx_lock(&cache->shpool->mutex);
c->node->count--;
+ c->node->error = 0;
c->node->uniq = uniq;
c->node->body_start = c->body_start;