Mercurial > hg > nginx
comparison src/http/ngx_http_file_cache.c @ 6539:d94f57990492
Cache: fixed updating bypassed cached errors (ticket #827).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 16 May 2016 20:37:38 +0300 |
parents | 3ef7bb882ad4 |
children | 8bf484eef9ab |
comparison
equal
deleted
inserted
replaced
6538:055cbb52ac1d | 6539:d94f57990492 |
---|---|
1401 } | 1401 } |
1402 | 1402 |
1403 ngx_shmtx_lock(&cache->shpool->mutex); | 1403 ngx_shmtx_lock(&cache->shpool->mutex); |
1404 | 1404 |
1405 c->node->count--; | 1405 c->node->count--; |
1406 c->node->error = 0; | |
1406 c->node->uniq = uniq; | 1407 c->node->uniq = uniq; |
1407 c->node->body_start = c->body_start; | 1408 c->node->body_start = c->body_start; |
1408 | 1409 |
1409 cache->sh->size += fs_size - c->node->fs_size; | 1410 cache->sh->size += fs_size - c->node->fs_size; |
1410 c->node->fs_size = fs_size; | 1411 c->node->fs_size = fs_size; |