From: wessels <> Date: Sun, 28 Jun 1998 13:52:59 +0000 (+0000) Subject: assert storeComplete only transitions from PENDING to COMPLETE states X-Git-Tag: SQUID_3_0_PRE1~3129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22955fba9f8c27b1cbf52c6f8246b266e90ff370;p=thirdparty%2Fsquid.git assert storeComplete only transitions from PENDING to COMPLETE states --- diff --git a/src/store.cc b/src/store.cc index 36b742bdb3..c0a838f176 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.423 1998/06/09 21:18:55 wessels Exp $ + * $Id: store.cc,v 1.424 1998/06/28 07:52:59 wessels Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -534,6 +534,7 @@ void storeComplete(StoreEntry * e) { debug(20, 3) ("storeComplete: '%s'\n", storeKeyText(e->key)); + assert(e->store_status == STORE_PENDING); e->mem_obj->object_sz = e->mem_obj->inmem_hi; e->store_status = STORE_OK; assert(e->mem_status == NOT_IN_MEMORY);