]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix condition that arises when the server is configured as a proxy gateway (aka reverse
authorBill Stoddard <stoddard@apache.org>
Tue, 10 Dec 2002 20:18:25 +0000 (20:18 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 10 Dec 2002 20:18:25 +0000 (20:18 +0000)
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

src/modules/proxy/proxy_cache.c

index e984fb2637b7bd8e02b067b8cbe486a48ed8f676..b6815cadb278680c62e4338d316815209f5c854f 100644 (file)
@@ -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)