]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
handle store abort in statObjects
authorwessels <>
Thu, 23 Jul 1998 04:36:08 +0000 (04:36 +0000)
committerwessels <>
Thu, 23 Jul 1998 04:36:08 +0000 (04:36 +0000)
src/stat.cc

index 1f7125162a47c06abf146b2e57806e7b75d539f5..2ff8eb742ce5b394e1ab7fe21c73513d5dbb5212 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stat.cc,v 1.266 1998/07/22 21:24:42 wessels Exp $
+ * $Id: stat.cc,v 1.267 1998/07/22 22:36:08 wessels Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
@@ -303,6 +303,10 @@ statObjects(void *data)
        storeUnlockObject(state->sentry);
        cbdataFree(state);
        return;
+    } else if (state->sentry->store_status == STORE_ABORTED) {
+       storeUnlockObject(state->sentry);
+       cbdataFree(state);
+       return;
     }
     storeBuffer(state->sentry);
     debug(49, 3) ("statObjects: Bucket #%d\n", state->bucket);