]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
trap STORE_PENDING objects when lock_count == 0
authorwessels <>
Sat, 21 Sep 1996 02:28:12 +0000 (02:28 +0000)
committerwessels <>
Sat, 21 Sep 1996 02:28:12 +0000 (02:28 +0000)
src/store.cc

index c1e943bdccefb8322942643dedbd01614eec2d0b..55d09c86050eb4a314b6d7ec711788ebb5b50790 100644 (file)
@@ -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) {