httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@hyperreal.com>
Subject cvs commit: apache/src mod_proxy.c
Date Sun, 31 Mar 1996 00:03:03 GMT
ben         96/03/30 16:03:03

  Modified:    src       mod_proxy.c
  Log:
  Ahem. Make TESTING work.
  
  Revision  Changes    Path
  1.15      +7 -3      apache/src/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_proxy.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -C3 -r1.14 -r1.15
  *** mod_proxy.c	1996/03/30 23:36:01	1.14
  --- mod_proxy.c	1996/03/31 00:03:00	1.15
  ***************
  *** 72,78 ****
    Ben Laurie <ben@algroup.co.uk> 30 Mar 96
    */
    
  ! #define TESTING	0
    
    #include "httpd.h"
    #include "http_config.h"
  --- 72,78 ----
    Ben Laurie <ben@algroup.co.uk> 30 Mar 96
    */
    
  ! #define TESTING	1
    
    #include "httpd.h"
    #include "http_config.h"
  ***************
  *** 1348,1355 ****
    	    if (errno != ENOENT)
    		log_uerror("unlink", filename, NULL, r->server);
    	}
  - #endif
    	else
    	{
    	    curblocks -= fent->len >> 10;
    	    curbytes -= fent->len & 0x3FF;
  --- 1348,1355 ----
    	    if (errno != ENOENT)
    		log_uerror("unlink", filename, NULL, r->server);
    	}
    	else
  + #endif
    	{
    	    curblocks -= fent->len >> 10;
    	    curbytes -= fent->len & 0x3FF;
  ***************
  *** 1401,1408 ****
    	    } else if (now != -1 && buf.st_atime > now + 86400 &&
    		       buf.st_mtime > now + 86400)
    		{
  ! 		Explain0("GC Unlink");
    		unlink(filename);
    		}
    	    continue;
    	}
  --- 1401,1412 ----
    	    } else if (now != -1 && buf.st_atime > now + 86400 &&
    		       buf.st_mtime > now + 86400)
    		{
  ! 		Explain1("GC unlink %s",filename);
  ! #if TESTING
  ! 		fprintf(stderr,"Would unlink %s\n",filename);
  ! #else
    		unlink(filename);
  + #endif
    		}
    	    continue;
    	}
  
  
  

Mime
View raw message