]> git.kaiwu.me - nginx.git/commitdiff
zero fcn->updating after node allocation
authorIgor Sysoev <igor@sysoev.ru>
Wed, 4 Aug 2010 13:34:23 +0000 (13:34 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 4 Aug 2010 13:34:23 +0000 (13:34 +0000)
src/http/ngx_http_file_cache.c

index c9ecdedb52d3f96b56ce8d153bd7298257aeedab..d14a7c5e6b39435a50d4f4a92c3931d785486414 100644 (file)
@@ -581,6 +581,7 @@ ngx_http_file_cache_exists(ngx_http_file_cache_t *cache, ngx_http_cache_t *c)
 
     fcn->uses = 1;
     fcn->count = 1;
+    fcn->updating = 0;
 
 renew:
 
@@ -1429,6 +1430,7 @@ ngx_http_file_cache_add(ngx_http_file_cache_t *cache, ngx_http_cache_t *c)
         fcn->valid_msec = c->valid_msec;
         fcn->error = 0;
         fcn->exists = 1;
+        fcn->updating = 0;
         fcn->uniq = c->uniq;
         fcn->valid_sec = c->valid_sec;
         fcn->body_start = c->body_start;