]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix: use storeTooManyDiskFilesOpen()
authorwessels <>
Wed, 14 Apr 1999 12:36:09 +0000 (12:36 +0000)
committerwessels <>
Wed, 14 Apr 1999 12:36:09 +0000 (12:36 +0000)
this has already been fixed in 2.2 branch

src/store_client.cc

index deb1de04d441a487c3dfee8e34cfa7b7cc631985..d5a2c4e35c55730afebf6a4d59582629db64226c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_client.cc,v 1.60 1999/04/14 06:15:21 wessels Exp $
+ * $Id: store_client.cc,v 1.61 1999/04/14 06:36:09 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager Client-Side Interface
  * AUTHOR: Duane Wessels
@@ -262,7 +262,7 @@ storeClientCopy2(StoreEntry * e, store_client * sc)
        debug(20, 3) ("storeClientCopy2: Need to open swap in file\n");
        assert(sc->type == STORE_DISK_CLIENT);
        /* gotta open the swapin file */
-       if (store_open_disk_fd > Config.max_open_disk_fds) {
+       if (storeTooManyDiskFilesOpen()) {
            /* yuck -- this causes a TCP_SWAPFAIL_MISS on the client side */
            sc->callback = NULL;
            callback(sc->callback_data, sc->copy_buf, -1);