diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-07-30 10:20:08 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-07-30 10:20:08 +0000 |
commit | 09ce1e2d89b9925a101dbe0b11a64a66a74497c4 (patch) | |
tree | 7c8bd4cc4c78d2e607e75a14fcf3a43f5900e8d1 /src | |
parent | 10f8d5d74e862d487bb5d465c4bac91ee94816c4 (diff) | |
download | nginx-09ce1e2d89b9925a101dbe0b11a64a66a74497c4.tar.gz nginx-09ce1e2d89b9925a101dbe0b11a64a66a74497c4.zip |
do not free unused cache node if cache min_uses > 1,
the bug has been introduced in r3695, r3708, r3711
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 133a52e68..4d8473425 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_cache_t *c, ngx_temp_file_t *tf) fcn->valid_msec = c->valid_msec; fcn->error = c->error; - } else if (!fcn->exists && fcn->count == 0) { + } else if (!fcn->exists && fcn->count == 0 && c->min_uses == 1) { ngx_queue_remove(&fcn->queue); ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node); ngx_slab_free_locked(cache->shpool, fcn); |