comparison src/http/ngx_http_file_cache.c @ 2935:92cc13f7487d

add response file uniq while loading cold cache on demand
author Igor Sysoev <igor@sysoev.ru>
date Fri, 12 Jun 2009 20:32:42 +0000
parents 55ceaef03d34
children 0998606fbfd4
comparison
equal deleted inserted replaced
2934:b6d588fa3ee9 2935:92cc13f7487d
318 318
319 if (!c->node->exists) { 319 if (!c->node->exists) {
320 c->node->uses = 1; 320 c->node->uses = 1;
321 c->node->body_start = c->body_start; 321 c->node->body_start = c->body_start;
322 c->node->exists = 1; 322 c->node->exists = 1;
323 c->node->uniq = of.uniq;
323 324
324 cache->sh->size += (c->length + cache->bsize - 1) / cache->bsize; 325 cache->sh->size += (c->length + cache->bsize - 1) / cache->bsize;
325 } 326 }
326 327
327 ngx_shmtx_unlock(&cache->shpool->mutex); 328 ngx_shmtx_unlock(&cache->shpool->mutex);