]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
tone down some swapfile open failed debug messages
authorwessels <>
Fri, 24 Oct 1997 08:52:19 +0000 (08:52 +0000)
committerwessels <>
Fri, 24 Oct 1997 08:52:19 +0000 (08:52 +0000)
assert no sc->callback in storeClientCopy()

src/store.cc

index f0df0fe27e9d9c05fc8e36233921f89a40d915e3..8130cb7012ed4c9513cff5fada4ee4bfc32586af 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.306 1997/10/24 01:28:42 wessels Exp $
+ * $Id: store.cc,v 1.307 1997/10/24 02:52:19 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -1074,8 +1074,6 @@ storeSwapInStart(StoreEntry * e, SIH * callback, void *callback_data)
     if (!BIT_TEST(e->flag, ENTRY_VALIDATED)) {
        if (storeDirMapBitTest(e->swap_file_number)) {
            /* someone took our file while we weren't looking */
-           debug(0, 0) ("storeSwapInStart: someone took our file while we weren't looking\n");
-           debug(0, 0) ("storeSwapInStart: for %s\n", e->url);
            callback(-1, callback_data);
            return;
        }
@@ -1929,6 +1927,7 @@ storeClientCopy(StoreEntry * e,
        data);
     sc = storeClientListSearch(mem, data);
     assert(sc != NULL);
+    assert(sc->callback == NULL);
     sc->copy_offset = copy_offset;
     sc->seen_offset = seen_offset;
     sc->callback = callback;
@@ -1969,7 +1968,7 @@ storeClientCopyFileOpened(int fd, void *data)
     store_client *sc = data;
     STCB *callback = sc->callback;
     if (fd < 0) {
-       debug(20, 1) ("storeClientCopyFileOpened: failed\n");
+       debug(20, 3) ("storeClientCopyFileOpened: failed\n");
        sc->callback = NULL;
        callback(sc->callback_data, sc->copy_buf, -1);
        return;