mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
fix r3695: this commit
*) freed valid keys zone node *) and did not decrease cache size, so cache manager process ete CPU time, if cache checking max_size was enabled
This commit is contained in:
parent
f297d0dd27
commit
4b7637adb6
@ -932,7 +932,7 @@ ngx_http_file_cache_free(ngx_http_request_t *r, ngx_temp_file_t *tf)
|
||||
fcn->valid_msec = c->valid_msec;
|
||||
fcn->error = c->error;
|
||||
|
||||
} else if (fcn->valid_msec == 0 && fcn->count == 0) {
|
||||
} else if (fcn->valid_sec == 0 && fcn->count == 0) {
|
||||
ngx_queue_remove(&fcn->queue);
|
||||
ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node);
|
||||
ngx_slab_free_locked(cache->shpool, fcn);
|
||||
|
Loading…
Reference in New Issue
Block a user