Mercurial > hg > nginx
changeset 2926:80a314b63c56
delete useless r->cache->uses
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 06 Jun 2009 17:48:54 +0000 |
parents | 8e3e31fd00a9 |
children | 55ceaef03d34 |
files | src/http/ngx_http_cache.h src/http/ngx_http_file_cache.c src/http/ngx_http_upstream.c |
diffstat | 3 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_cache.h Sat Jun 06 14:13:49 2009 +0000 +++ b/src/http/ngx_http_cache.h Sat Jun 06 17:48:54 2009 +0000 @@ -62,7 +62,6 @@ off_t length; ngx_uint_t min_uses; - ngx_uint_t uses; ngx_uint_t error; ngx_uint_t valid_msec;
--- a/src/http/ngx_http_file_cache.c Sat Jun 06 14:13:49 2009 +0000 +++ b/src/http/ngx_http_file_cache.c Sat Jun 06 17:48:54 2009 +0000 @@ -172,9 +172,8 @@ rc = ngx_http_file_cache_exists(cache, c); - ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "http file cache exists: %i u:%ui e:%d", - rc, c->uses, c->exists); + ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http file cache exists: %i e:%d", rc, c->exists); if (rc == NGX_ERROR) { return rc; @@ -332,8 +331,6 @@ if (c->valid_sec < now) { - c->uses = c->min_uses; - ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http file cache expired: %T %T", c->valid_sec, now); @@ -440,7 +437,6 @@ ngx_queue_insert_head(&cache->sh->queue, &fcn->queue); c->uniq = fcn->uniq; - c->uses = fcn->uses; c->error = fcn->error; c->node = fcn;
--- a/src/http/ngx_http_upstream.c Sat Jun 06 14:13:49 2009 +0000 +++ b/src/http/ngx_http_upstream.c Sat Jun 06 17:48:54 2009 +0000 @@ -577,8 +577,8 @@ rc = ngx_http_file_cache_open(r); - ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "http upstream cache: %i u:%ui", rc, c->uses); + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http upstream cache: %i", rc); if (rc == NGX_OK) {