]> git.kaiwu.me - nginx.git/commitdiff
Merge of r4035:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 29 Aug 2011 09:35:00 +0000 (09:35 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 29 Aug 2011 09:35:00 +0000 (09:35 +0000)
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

index f44fe1de1252fecd1eb7006f14350551c7991399..5f074ad24105431579cbab1eb9db764f746f307f 100644 (file)
@@ -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;
         }