Mercurial > hg > nginx
comparison src/http/ngx_http_file_cache.c @ 4037:f4dd627c657f stable-1.0
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.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 29 Aug 2011 09:35:00 +0000 |
parents | 2e8dbd773d63 |
children | 30519bb5621d |
comparison
equal
deleted
inserted
replaced
4036:ded522fdc826 | 4037:f4dd627c657f |
---|---|
407 if (!c->node->exists) { | 407 if (!c->node->exists) { |
408 c->node->uses = 1; | 408 c->node->uses = 1; |
409 c->node->body_start = c->body_start; | 409 c->node->body_start = c->body_start; |
410 c->node->exists = 1; | 410 c->node->exists = 1; |
411 c->node->uniq = c->uniq; | 411 c->node->uniq = c->uniq; |
412 c->node->fs_size = c->fs_size; | |
412 | 413 |
413 cache->sh->size += c->fs_size; | 414 cache->sh->size += c->fs_size; |
414 } | 415 } |
415 | 416 |
416 ngx_shmtx_unlock(&cache->shpool->mutex); | 417 ngx_shmtx_unlock(&cache->shpool->mutex); |