comparison src/http/ngx_http_file_cache.c @ 4034:e2c075e774b6

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 Thu, 25 Aug 2011 17:29:34 +0000
parents 5e544655d97b
children b9ee14871bf1
comparison
equal deleted inserted replaced
4033:4e1a489c26cd 4034:e2c075e774b6
406 if (!c->node->exists) { 406 if (!c->node->exists) {
407 c->node->uses = 1; 407 c->node->uses = 1;
408 c->node->body_start = c->body_start; 408 c->node->body_start = c->body_start;
409 c->node->exists = 1; 409 c->node->exists = 1;
410 c->node->uniq = c->uniq; 410 c->node->uniq = c->uniq;
411 c->node->fs_size = c->fs_size;
411 412
412 cache->sh->size += c->fs_size; 413 cache->sh->size += c->fs_size;
413 } 414 }
414 415
415 ngx_shmtx_unlock(&cache->shpool->mutex); 416 ngx_shmtx_unlock(&cache->shpool->mutex);