]> git.kaiwu.me - nginx.git/commitdiff
zero cache file length,
authorIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 13:05:38 +0000 (13:05 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 13:05:38 +0000 (13:05 +0000)
this fixes full cache purging and hogging CPU by the cache manager after this

src/http/ngx_http_file_cache.c

index 42315f770900be2ce18daa306415820d5801ac55..d000a9d14ac3c886eda40f664544fcb11290ec81 100644 (file)
@@ -448,6 +448,7 @@ renew:
     fcn->valid_sec = 0;
     fcn->uniq = 0;
     fcn->body_start = 0;
+    fcn->length = 0;
 
 done: