From: Igor Sysoev Date: Tue, 19 May 2009 12:55:26 +0000 (+0000) Subject: use already given variable X-Git-Tag: release-0.7.59~10 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=980491302ba124377c8d379fb9a4c411b0cbab6d;p=nginx.git use already given variable --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index e72dafff6..9d86914e2 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -562,8 +562,8 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u) u->cacheable = 1; - c->min_uses = r->upstream->conf->cache_min_uses; - c->body_start = r->upstream->conf->buffer_size; + c->min_uses = u->conf->cache_min_uses; + c->body_start = u->conf->buffer_size; c->file_cache = u->conf->cache->data; rc = ngx_http_file_cache_open(r);