From a0202f26c631d3f997cf700aa16243b0e1f3f470 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 19 Jul 2011 10:35:02 +0000 Subject: [PATCH] fix r3756: release lock to allow other process to delete cache node patch by Maxim Dounin --- src/http/ngx_http_file_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 03cd268b2..f44fe1de1 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -1099,7 +1099,8 @@ ngx_http_file_cache_expire(ngx_http_file_cache_t *cache) } if (fcn->deleting) { - continue; + wait = 1; + break; } p = ngx_hex_dump(key, (u_char *) &fcn->node.key,