]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed "no swap_filen" test. Zero swap_filen is a valid swap_filen.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 7 Feb 2011 01:36:27 +0000 (18:36 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 7 Feb 2011 01:36:27 +0000 (18:36 -0700)
src/store_swapout.cc

index d8da21697629253364fa187c18bd7ba51b9aa0a4..9cce690d4f883cc9f2e3f2bfcfae1016a16ea426 100644 (file)
@@ -337,7 +337,7 @@ storeSwapOutFileClosed(void *data, int errflag, StoreIOState::Pointer self)
             storeConfigure();
         }
 
-        if (e->swap_filen > 0)
+        if (e->swap_filen >= 0)
             e->unlink();
 
         assert(e->swap_status == SWAPOUT_NONE);