]> git.kaiwu.me - nginx.git/commitdiff
fix r3756: release lock to allow other process to delete cache node
authorIgor Sysoev <igor@sysoev.ru>
Tue, 19 Jul 2011 10:35:02 +0000 (10:35 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 19 Jul 2011 10:35:02 +0000 (10:35 +0000)
patch by Maxim Dounin

src/http/ngx_http_file_cache.c

index 03cd268b2cdc1e8e8998011e7e0dbc71c5c05b4a..f44fe1de1252fecd1eb7006f14350551c7991399 100644 (file)
@@ -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,