diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-08-02 12:34:15 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-08-02 12:34:15 +0000 |
commit | 029299aaa4184cd153fd3d132e9670d297b618ae (patch) | |
tree | 94406e8da6ad3ae83575d2b73518183b4fb8d6b1 /src | |
parent | c7b2e2a5702c728e85d10b2d3d1581ab23a84844 (diff) | |
download | nginx-029299aaa4184cd153fd3d132e9670d297b618ae.tar.gz nginx-029299aaa4184cd153fd3d132e9670d297b618ae.zip |
change logic slightly
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_file_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |