]> git.kaiwu.me - nginx.git/commitdiff
unlock incompletely loaded cache
authorIgor Sysoev <igor@sysoev.ru>
Mon, 10 Aug 2009 15:57:42 +0000 (15:57 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 10 Aug 2009 15:57:42 +0000 (15:57 +0000)
src/http/ngx_http_file_cache.c

index 208752bcea8ed840569985a414186e619bc95a73..27ac441fd8db63bd4d481be223cfcd2870994135 100644 (file)
@@ -1103,6 +1103,7 @@ ngx_http_file_cache_loader(void *data)
     cache->files = 0;
 
     if (ngx_walk_tree(&tree, &cache->path->name) == NGX_ABORT) {
+        cache->sh->loading = 0;
         return;
     }