Cache: fixed updating bypassed cached errors (ticket #827).

This commit is contained in:
Maxim Dounin 2016-05-16 20:37:38 +03:00
parent 099d74cf3d
commit bf838dc9df

View File

@ -1403,6 +1403,7 @@ ngx_http_file_cache_update(ngx_http_request_t *r, ngx_temp_file_t *tf)
ngx_shmtx_lock(&cache->shpool->mutex); ngx_shmtx_lock(&cache->shpool->mutex);
c->node->count--; c->node->count--;
c->node->error = 0;
c->node->uniq = uniq; c->node->uniq = uniq;
c->node->body_start = c->body_start; c->node->body_start = c->body_start;