/*
- * $Id: store_client.cc,v 1.58 1999/01/22 04:09:38 wessels Exp $
+ * $Id: store_client.cc,v 1.59 1999/02/09 22:26:54 wessels Exp $
*
* DEBUG: section 20 Storage Manager Client-Side Interface
* AUTHOR: Duane Wessels
debug(20, 3) ("storeClientCopy2: Need to open swap in file\n");
assert(sc->type == STORE_DISK_CLIENT);
/* gotta open the swapin file */
- /* assert(sc->copy_offset == 0); */
+ if (store_open_disk_fd > Config.max_open_disk_fds) {
+ /* yuck -- this causes a TCP_SWAPFAIL_MISS on the client side */
+ sc->callback = NULL;
+ callback(sc->callback_data, sc->copy_buf, -1);
+ }
if (!sc->flags.disk_io_pending) {
sc->flags.disk_io_pending = 1;
storeSwapInStart(e, storeClientFileOpened, sc);