From edbaeece39688c16b920426e5e7dfcf54fade6e8 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 24 Oct 1997 08:52:19 +0000 Subject: [PATCH] tone down some swapfile open failed debug messages assert no sc->callback in storeClientCopy() --- src/store.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.47.2