From: wessels <> Date: Wed, 1 Dec 1999 11:24:27 +0000 (+0000) Subject: mem client fix from 2.3 branch X-Git-Tag: SQUID_3_0_PRE1~2111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce872c10e0e8d8d772b85e5c9b4b7c31e0481e7f;p=thirdparty%2Fsquid.git mem client fix from 2.3 branch --- diff --git a/src/store_client.cc b/src/store_client.cc index 0e37f849e2..81cda22e1f 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -1,6 +1,6 @@ /* - * $Id: store_client.cc,v 1.78 1999/10/04 22:49:30 wessels Exp $ + * $Id: store_client.cc,v 1.79 1999/12/01 04:24:27 wessels Exp $ * * DEBUG: section 20 Storage Manager Client-Side Interface * AUTHOR: Duane Wessels @@ -98,6 +98,14 @@ storeClientType(StoreEntry * e) */ else if (mem->nclients == 1) return STORE_MEM_CLIENT; + /* + * If there is no disk file to open yet, we must make this a + * mem client. If we can't open the swapin file before writing + * to the client, there is no guarantee that we will be able + * to open it later. + */ + else if (e->swap_status == SWAPOUT_NONE) + return STORE_MEM_CLIENT; /* * otherwise, make subsequent clients read from disk so they * can not delay the first, and vice-versa.