From: wessels <> Date: Sat, 22 May 1999 04:23:25 +0000 (+0000) Subject: handle the case when storeOpen() fails. X-Git-Tag: SQUID_3_0_PRE1~2189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07362235361de47d5243aa55dd3f3886b72f2fff;p=thirdparty%2Fsquid.git handle the case when storeOpen() fails. --- diff --git a/src/store_client.cc b/src/store_client.cc index 73c7402262..2273ff6128 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -1,6 +1,6 @@ /* - * $Id: store_client.cc,v 1.69 1999/05/19 22:36:42 wessels Exp $ + * $Id: store_client.cc,v 1.70 1999/05/21 22:23:25 wessels Exp $ * * DEBUG: section 20 Storage Manager Client-Side Interface * AUTHOR: Duane Wessels @@ -270,7 +270,13 @@ storeClientCopy2(StoreEntry * e, store_client * sc) } else if (!sc->flags.disk_io_pending) { sc->flags.disk_io_pending = 1; sc->swapin_sio = storeSwapInStart(e); - storeClientFileRead(sc); + if (NULL == sc->swapin_sio) { + sc->flags.disk_io_pending = 0; + sc->callback = NULL; + callback(sc->callback_data, sc->copy_buf, -1); + } else { + storeClientFileRead(sc); + } } else { debug(20, 2) ("storeClientCopy2: Averted multiple fd operation\n"); }