]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
modify assertion: its okay to open a swapin FD while the object is still
authorwessels <>
Sat, 18 Oct 1997 01:39:32 +0000 (01:39 +0000)
committerwessels <>
Sat, 18 Oct 1997 01:39:32 +0000 (01:39 +0000)
being swapped out

src/store.cc

index a5ad9bac0e53ce56792a7f551a08e76a52c2710f..3fbded5365e1aad3c0935d13785ec8689335ac3e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.290 1997/10/17 16:21:51 wessels Exp $
+ * $Id: store.cc,v 1.291 1997/10/17 19:39:32 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -1065,7 +1065,7 @@ storeSwapInStart(StoreEntry * e, SIH * callback, void *callback_data)
            return;
        }
     }
-    assert(e->swap_status == SWAPOUT_DONE);
+    assert(e->swap_status == SWAPOUT_WRITING || e->swap_status == SWAPOUT_DONE);
     assert(e->swap_file_number >= 0);
     assert(e->mem_obj != NULL);
     ctrlp = xmalloc(sizeof(swapin_ctrl_t));