diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-07-27 11:22:59 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-07-27 11:22:59 +0000 |
commit | 4b7637adb6a9dee317c771fdf122ccc1af324d8c (patch) | |
tree | 3f77948e022ca0452f62fd195763db2b2aed3bb5 /src | |
parent | f297d0dd2771f4993b144b56c6f175504c8d53c4 (diff) | |
download | nginx-4b7637adb6a9dee317c771fdf122ccc1af324d8c.tar.gz nginx-4b7637adb6a9dee317c771fdf122ccc1af324d8c.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_file_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 4dc2b5741..ad97f0787 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -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); |