aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-01 13:05:38 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-01 13:05:38 +0000
commit931d313311c107508c1480b643875ea6f1d6908c (patch)
tree3fcd513670e8caacc6ad97cfed938d8472a27b2f /src
parenta697c8e574baf87ab61c1cf0e27e756caa1bb270 (diff)
downloadnginx-931d313311c107508c1480b643875ea6f1d6908c.tar.gz
nginx-931d313311c107508c1480b643875ea6f1d6908c.zip
zero cache file length,
this fixes full cache purging and hogging CPU by the cache manager after this
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_file_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
index 42315f770..d000a9d14 100644
--- 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: