From: Maxim Dounin Date: Mon, 16 May 2016 17:37:38 +0000 (+0300) Subject: Cache: fixed updating bypassed cached errors (ticket #827). X-Git-Tag: release-1.11.0~30 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=bf838dc9dfca4e80b883c2e659c65f90fc1526a3;p=nginx.git Cache: fixed updating bypassed cached errors (ticket #827). --- 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;