/*
- * $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
*/
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.