The unified diff between revisions [6d9381f5..] and [f35cd536..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/store_io.c'

#
#
# patch "src/store_io.c"
#  from [84709eba66ebe42416b22fcea47946e4b37114c8]
#    to [8a31eb00c0678314dbf38b0fa41d2bbd3f96f3b9]
#
============================================================
--- src/store_io.c	84709eba66ebe42416b22fcea47946e4b37114c8
+++ src/store_io.c	8a31eb00c0678314dbf38b0fa41d2bbd3f96f3b9
@@ -67,11 +67,13 @@ storeOpen(StoreEntry * e, STFNCB * file_
 storeOpen(StoreEntry * e, STFNCB * file_callback, STIOCB * callback,
     void *callback_data)
 {
+    int load;
     storeIOState *sio;

     SwapDir *SD = &Config.cacheSwap.swapDirs[e->swap_dirn];
     store_io_stats.open.calls++;
-    if (SD->checkload(SD, ST_OP_OPEN) == 0) {
+    load = SD->checkload(SD, ST_OP_OPEN);
+    if (load < 0 || load > 1000) {
         store_io_stats.open.loadav_fail++;
         return NULL;
     }