diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-08-25 17:29:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-08-25 17:29:34 +0000 |
commit | 8b2bf081653ae9b59da308b92b97e49c70bcc96c (patch) | |
tree | 50584b6d10afb9162fa0a91aaf2797a667059412 /src/http/ngx_http_file_cache.c | |
parent | fbc51e4c445bf25854dea3baac4572b21325d38c (diff) | |
download | nginx-8b2bf081653ae9b59da308b92b97e49c70bcc96c.tar.gz nginx-8b2bf081653ae9b59da308b92b97e49c70bcc96c.zip |
Cache size accounting fix: actual cache size on disk was less than
needed by sum of sizes of files loaded by worker processes themselves
while cache loader was running.
The bug has been introduced in r3900.
Diffstat (limited to 'src/http/ngx_http_file_cache.c')
-rw-r--r-- | src/http/ngx_http_file_cache.c | 1 |
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 a0f21cfb9..d87f78540 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -408,6 +408,7 @@ ngx_http_file_cache_read(ngx_http_request_t *r, ngx_http_cache_t *c) c->node->body_start = c->body_start; c->node->exists = 1; c->node->uniq = c->uniq; + c->node->fs_size = c->fs_size; cache->sh->size += c->fs_size; } |