From: wessels <> Date: Tue, 21 Oct 1997 04:49:25 +0000 (+0000) Subject: assertions X-Git-Tag: SQUID_3_0_PRE1~4760 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b974bc9def1f7e7f436f704dfa148c1b4fb1c04f;p=thirdparty%2Fsquid.git assertions --- diff --git a/src/store.cc b/src/store.cc index 81c327a315..f84d530ec9 100644 --- a/src/store.cc +++ b/src/store.cc @@ -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");