mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
change logic slightly
This commit is contained in:
parent
c7b2e2a570
commit
029299aaa4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user