]> git.kaiwu.me - nginx.git/commitdiff
Cache: fixed updating bypassed cached errors (ticket #827).
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 16 May 2016 17:37:38 +0000 (20:37 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 16 May 2016 17:37:38 +0000 (20:37 +0300)
src/http/ngx_http_file_cache.c

index 37cd377d0316f9633ab72c3e81226ccf9d639fa0..38b695ed1f66249e44c7a7aa0e2a2e8083b4b769 100644 (file)
@@ -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;