From 029299aaa4184cd153fd3d132e9670d297b618ae Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 2 Aug 2010 12:34:15 +0000 Subject: change logic slightly --- src/http/ngx_http_file_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 95260d444..6fc823c6d 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -1007,7 +1007,7 @@ ngx_http_file_cache_forced_expire(ngx_http_file_cache_t *cache) ngx_memcpy(name, path->name.data, path->name.len); wait = 10; - tries = 0; + tries = 20; ngx_shmtx_lock(&cache->shpool->mutex); @@ -1026,7 +1026,7 @@ ngx_http_file_cache_forced_expire(ngx_http_file_cache_t *cache) ngx_http_file_cache_delete(cache, q, name); } else { - if (tries++ < 20) { + if (--tries) { continue; } -- cgit