diff src/http/ngx_http_file_cache.c @ 3942:2e8dbd773d63

fix r3756: release lock to allow other process to delete cache node patch by Maxim Dounin
author Igor Sysoev <igor@sysoev.ru>
date Tue, 19 Jul 2011 10:35:02 +0000
parents 2a70484a6580
children 90b0487fba44 f4dd627c657f
line wrap: on
line diff
--- 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
         }
 
         if (fcn->deleting) {
-            continue;
+            wait = 1;
+            break;
         }
 
         p = ngx_hex_dump(key, (u_char *) &fcn->node.key,