mirror of
https://github.com/nginx/nginx.git
synced 2024-12-24 12:27:50 +08:00
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.
This commit is contained in:
parent
32220608e5
commit
283936abca
@ -409,6 +409,7 @@ ngx_http_file_cache_read(ngx_http_request_t *r, ngx_http_cache_t *c)
|
|||||||
c->node->body_start = c->body_start;
|
c->node->body_start = c->body_start;
|
||||||
c->node->exists = 1;
|
c->node->exists = 1;
|
||||||
c->node->uniq = c->uniq;
|
c->node->uniq = c->uniq;
|
||||||
|
c->node->fs_size = c->fs_size;
|
||||||
|
|
||||||
cache->sh->size += c->fs_size;
|
cache->sh->size += c->fs_size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user