]> git.kaiwu.me - nginx.git/commitdiff
fix logged long locked cache entry name and add count
authorIgor Sysoev <igor@sysoev.ru>
Thu, 26 Mar 2009 09:50:04 +0000 (09:50 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 26 Mar 2009 09:50:04 +0000 (09:50 +0000)
src/http/ngx_http_file_cache.c

index 1e80a39eedc5684f012c940b3eeacb56bc4cfebf..0cb81d934486991ffff0ffc44c891519df116bc9 100644 (file)
@@ -817,8 +817,8 @@ ngx_http_file_cache_expire(ngx_http_file_cache_t *cache, ngx_uint_t forced)
                 ngx_rbtree_delete(cache->rbtree, &fcn->node);
 
                 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
-                              "ignore long locked inactive cache entry %*s",
-                              NGX_HTTP_CACHE_KEY_LEN, key);
+                       "ignore long locked inactive cache entry %*s, count:%d",
+                       2 * NGX_HTTP_CACHE_KEY_LEN, key, fcn->count);
             }
 
             if (tries++ < 10) {