changeset 2632:ba1f3cdba725

zero cache file length, this fixes full cache purging and hogging CPU by the cache manager after this
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 13:05:38 +0000
parents 73571521c2eb
children 34389dfc2061
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
@@ -448,6 +448,7 @@ renew:
     fcn->valid_sec = 0;
     fcn->uniq = 0;
     fcn->body_start = 0;
+    fcn->length = 0;
 
 done: