httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: apache-1.3/src/modules/proxy proxy_cache.c
Date Tue, 10 Dec 2002 20:18:26 GMT
stoddard    2002/12/10 12:18:26

  Modified:    src/modules/proxy proxy_cache.c
  Log:
  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
  
  Revision  Changes    Path
  1.90      +1 -1      apache-1.3/src/modules/proxy/proxy_cache.c
  
  Index: proxy_cache.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/proxy/proxy_cache.c,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- proxy_cache.c	5 Sep 2002 19:53:35 -0000	1.89
  +++ proxy_cache.c	10 Dec 2002 20:18:25 -0000	1.90
  @@ -1799,7 +1799,7 @@
   #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)
  
  
  

Mime
View raw message