From: wessels <> Date: Fri, 24 Oct 1997 08:52:19 +0000 (+0000) Subject: tone down some swapfile open failed debug messages X-Git-Tag: SQUID_3_0_PRE1~4711 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edbaeece39688c16b920426e5e7dfcf54fade6e8;p=thirdparty%2Fsquid.git tone down some swapfile open failed debug messages assert no sc->callback in storeClientCopy() --- diff --git a/src/store.cc b/src/store.cc index f0df0fe27e..8130cb7012 100644 --- a/src/store.cc +++ b/src/store.cc @@ -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;