]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assert storeComplete only transitions from PENDING to COMPLETE states
authorwessels <>
Sun, 28 Jun 1998 13:52:59 +0000 (13:52 +0000)
committerwessels <>
Sun, 28 Jun 1998 13:52:59 +0000 (13:52 +0000)
src/store.cc

index 36b742bdb380a53aa29c949d58bb4a94fa06a67e..c0a838f1760c66da3b86e95cdd2abfeb611675a8 100644 (file)
@@ -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);