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 <[EMAIL PROTECTED]> 30 Mar 96
    */
    
  ! #define TESTING     0
    
    #include "httpd.h"
    #include "http_config.h"
  --- 72,78 ----
    Ben Laurie <[EMAIL PROTECTED]> 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;
        }
  
  
  

Reply via email to