changeset 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 ce1ba4a312d7
children bfab2536197b
files src/http/ngx_http_file_cache.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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,