]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assertions
authorwessels <>
Tue, 21 Oct 1997 04:49:25 +0000 (04:49 +0000)
committerwessels <>
Tue, 21 Oct 1997 04:49:25 +0000 (04:49 +0000)
src/store.cc

index 81c327a3151ed76cb8b6adeabb5c4f5398cf236d..f84d530ec995168011268f2acc6d1fc581e03e7e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.296 1997/10/20 19:07:09 wessels Exp $
+ * $Id: store.cc,v 1.297 1997/10/20 22:49:25 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -1941,6 +1941,7 @@ storeClientCopy(StoreEntry * e,
     MemObject *mem = e->mem_obj;
     struct _store_client *sc;
     static int recurse_detect = 0;
+    assert(e->store_status != STORE_ABORTED);
     assert(recurse_detect < 3);        /* could == 1 for IMS not modified's */
     debug(20, 3) ("storeClientCopy: %s, seen %d, want %d, size %d, cb %p, cbdata %p\n",
        e->key,
@@ -1957,6 +1958,7 @@ storeClientCopy(StoreEntry * e,
     sc->copy_buf = buf;
     sc->copy_size = size;
     sc->copy_offset = copy_offset;
+    assert(seen_offset <= mem->inmem_hi || e->store_status != STORE_PENDING);
     if (e->store_status == STORE_PENDING && seen_offset == mem->inmem_hi) {
        /* client has already seen this, wait for more */
        debug(20, 3) ("storeClientCopy: Waiting for more\n");