diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2011-08-29 09:35:00 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2011-08-29 09:35:00 +0000 |
| commit | 283936abca079a6f6e6c0dd23b4a5fd45467e96a (patch) | |
| tree | d3a8ff3f3ea36ae998a2f5a8d538859b808a132c | |
| parent | 32220608e53cf431e10206077f8259dbb59ff66d (diff) | |
| download | nginx-283936abca079a6f6e6c0dd23b4a5fd45467e96a.tar.gz nginx-283936abca079a6f6e6c0dd23b4a5fd45467e96a.tar.bz2 | |
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.
| -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 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; } |
