mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
change logic slightly
This commit is contained in:
parent
c7b2e2a570
commit
029299aaa4
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue