From: wessels <> Date: Sat, 21 Sep 1996 02:28:12 +0000 (+0000) Subject: trap STORE_PENDING objects when lock_count == 0 X-Git-Tag: SQUID_3_0_PRE1~5753 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b00be7a2eaa975fb5a0808e62309d85a5218b1d;p=thirdparty%2Fsquid.git trap STORE_PENDING objects when lock_count == 0 --- diff --git a/src/store.cc b/src/store.cc index c1e943bdcc..55d09c8605 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.117 1996/09/20 06:29:13 wessels Exp $ + * $Id: store.cc,v 1.118 1996/09/20 20:28:12 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -569,6 +569,10 @@ storeUnlockObject(StoreEntry * e) e->key, e->lock_count); if (e->lock_count) return (int) e->lock_count; + if (e->store_status == STORE_PENDING) { + debug_trap("storeUnlockObject: Someone unlocked STORE_PENDING object"); + e->store_status = STORE_ABORTED; + } if (e->flag & RELEASE_REQUEST) { storeRelease(e); } else if (e->flag & ABORT_MSG_PENDING) {