From 283936abca079a6f6e6c0dd23b4a5fd45467e96a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 29 Aug 2011 09:35:00 +0000 Subject: [PATCH] Merge of r4035: 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. --- src/http/ngx_http_file_cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index f44fe1de1..5f074ad24 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -409,6 +409,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; }