delete useless r->cache->uses

This commit is contained in:
Igor Sysoev 2009-06-06 17:48:54 +00:00
parent ae7e8886f6
commit fa524e9063
3 changed files with 4 additions and 9 deletions

View File

@ -62,7 +62,6 @@ struct ngx_http_cache_s {
off_t length;
ngx_uint_t min_uses;
ngx_uint_t uses;
ngx_uint_t error;
ngx_uint_t valid_msec;

View File

@ -172,9 +172,8 @@ ngx_http_file_cache_open(ngx_http_request_t *r)
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 @@ ngx_http_file_cache_open(ngx_http_request_t *r)
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 @@ done:
ngx_queue_insert_head(&cache->sh->queue, &fcn->queue);
c->uniq = fcn->uniq;
c->uses = fcn->uses;
c->error = fcn->error;
c->node = fcn;

View File

@ -577,8 +577,8 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u)
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) {