changeset 6539:d94f57990492

Cache: fixed updating bypassed cached errors (ticket #827).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 16 May 2016 20:37:38 +0300
parents 055cbb52ac1d
children a01e400dd4a1
files src/http/ngx_http_file_cache.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_requ
     ngx_shmtx_lock(&cache->shpool->mutex);
 
     c->node->count--;
+    c->node->error = 0;
     c->node->uniq = uniq;
     c->node->body_start = c->body_start;