]> git.kaiwu.me - nginx.git/commitdiff
Cache size accounting fix: actual cache size on disk was less than
authorIgor Sysoev <igor@sysoev.ru>
Thu, 25 Aug 2011 17:29:34 +0000 (17:29 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 25 Aug 2011 17:29:34 +0000 (17:29 +0000)
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 a0f21cfb96ca45fd2629d4e4f26418a30648923a..d87f785405b2aa8ffdb9c93b177fcf01887b635a 100644 (file)
@@ -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;
         }