]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
added counters for cleaned store files and unlinked files
authorwessels <>
Tue, 22 Sep 1998 23:50:33 +0000 (23:50 +0000)
committerwessels <>
Tue, 22 Sep 1998 23:50:33 +0000 (23:50 +0000)
src/structs.h
src/tools.cc

index 0a1eafab7720c4c2be577f9f2a664708256986fb..68eb89f808ddb089b199f17382f8e4e23176ccac 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: structs.h,v 1.231 1998/09/19 17:06:17 wessels Exp $
+ * $Id: structs.h,v 1.232 1998/09/22 17:50:33 wessels Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -1452,6 +1452,7 @@ struct _StatCounters {
            int reads;
            int writes;
            int seeks;
+           int unlinks;
        } disk;
        struct {
            int accepts;
@@ -1470,6 +1471,7 @@ struct _StatCounters {
        int selects;
 #endif
     } syscalls;
+    int store_files_cleaned;
 };
 
 /* per header statistics */
index 647655fabfc1d9490f1ab90760bf17ed26a5bf2d..96e971998209bbe2a678eca4d9c09a5b98abcf18 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.167 1998/08/24 22:06:49 wessels Exp $
+ * $Id: tools.cc,v 1.168 1998/09/22 17:50:33 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -439,6 +439,7 @@ safeunlink(const char *s, int quiet)
        quiet ? NULL : safeunlinkComplete,
        quiet ? NULL : xstrdup(s));
 #else
+    Counter.syscalls.disk.unlinks++;
     if (unlink(s) < 0 && !quiet)
        debug(50, 1) ("safeunlink: Couldn't delete %s: %s\n", s, xstrerror());
 #endif