From: Bill Stoddard Date: Tue, 10 Dec 2002 20:18:25 +0000 (+0000) Subject: Fix condition that arises when the server is configured as a proxy gateway (aka reverse X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3545ff67410ba277cfdb9ea6e368105847585c36;p=thirdparty%2Fapache%2Fhttpd.git Fix condition that arises when the server is configured as a proxy gateway (aka reverse proxy) and multiple processes are serving the same backend file at the same time. Only one of the processes will actually succeed at saving the file, the others will fail with the message "[error] (17)File exists: proxy: error linking cache file ...". Changing the message level from APLOG_ERR to APLOG_INFO will keep this message out of the logs w/o major overhaul of this code. PR: 2746 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97837 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/modules/proxy/proxy_cache.c b/src/modules/proxy/proxy_cache.c index e984fb2637b..b6815cadb27 100644 --- a/src/modules/proxy/proxy_cache.c +++ b/src/modules/proxy/proxy_cache.c @@ -1799,7 +1799,7 @@ void ap_proxy_cache_tidy(cache_req *c) #else if (link(c->tempfile, c->filename) == -1) - ap_log_error(APLOG_MARK, APLOG_ERR, s, + ap_log_error(APLOG_MARK, APLOG_INFO, s, "proxy: error linking cache file %s to %s", c->tempfile, c->filename); if (unlink(c->tempfile) == -1)