[nginx] Cache: fixed updating bypassed cached errors (ticket #827).

Maxim Dounin mdounin at mdounin.ru
Mon May 16 17:40:22 UTC 2016


details:   http://hg.nginx.org/nginx/rev/d94f57990492
branches:  
changeset: 6539:d94f57990492
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Mon May 16 20:37:38 2016 +0300
description:
Cache: fixed updating bypassed cached errors (ticket #827).

diffstat:

 src/http/ngx_http_file_cache.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
--- 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;
 



More information about the nginx-devel mailing list