commit | 029299aaa4184cd153fd3d132e9670d297b618ae | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Aug 02 12:34:15 2010 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Aug 02 12:34:15 2010 +0000 |
tree | 94406e8da6ad3ae83575d2b73518183b4fb8d6b1 | |
parent | c7b2e2a5702c728e85d10b2d3d1581ab23a84844 [diff] |
change logic slightly
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 95260d4..6fc823c 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c
@@ -1007,7 +1007,7 @@ 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_delete(cache, q, name); } else { - if (tries++ < 20) { + if (--tries) { continue; }