From 22955fba9f8c27b1cbf52c6f8246b266e90ff370 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sun, 28 Jun 1998 13:52:59 +0000 Subject: [PATCH] assert storeComplete only transitions from PENDING to COMPLETE states --- src/store.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2