From: Alex Rousskov Date: Mon, 7 Feb 2011 01:36:27 +0000 (-0700) Subject: Fixed "no swap_filen" test. Zero swap_filen is a valid swap_filen. X-Git-Tag: take02~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa192c7105f6f67b35d28f487d5e3c89ad0fc35c;p=thirdparty%2Fsquid.git Fixed "no swap_filen" test. Zero swap_filen is a valid swap_filen. --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index d8da216976..9cce690d4f 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -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);