/*
- * $Id: store_client.cc,v 1.41 1998/09/14 21:28:13 wessels Exp $
+ * $Id: store_client.cc,v 1.42 1998/09/19 16:39:15 wessels Exp $
*
* DEBUG: section 20 Storage Manager Client-Side Interface
* AUTHOR: Duane Wessels
sc->swapin_fd = -1;
sc->flags.disk_io_pending = 0;
sc->entry = e;
- if (e->store_status == STORE_PENDING && mem->swapout.fd == -1)
+ if (e->store_status == STORE_PENDING && mem->swapout.fd == -1) {
sc->type = STORE_MEM_CLIENT;
- else
+ /* assert we'll be able to get the data we want */
+ assert(mem->inmem_lo == 0);
+ } else {
sc->type = STORE_DISK_CLIENT;
+ /* assert we'll be able to get the data we want */
+ /* maybe we should open swapin_fd here */
+ assert(e->swap_file_number > -1);
+ }
for (T = &mem->clients; *T; T = &(*T)->next);
*T = sc;
}