From: wessels <> Date: Fri, 27 Mar 1998 11:45:21 +0000 (+0000) Subject: only subtract file size if entry has been validated X-Git-Tag: SQUID_3_0_PRE1~3739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b3d686800eecaf4f957379f168fdd7293d30b10;p=thirdparty%2Fsquid.git only subtract file size if entry has been validated --- diff --git a/src/store.cc b/src/store.cc index e01b0f8df7..375dade411 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.396 1998/03/20 18:06:47 rousskov Exp $ + * $Id: store.cc,v 1.397 1998/03/27 04:45:21 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -721,7 +721,8 @@ storeRelease(StoreEntry * e) if (e->swap_file_number > -1) { storeUnlinkFileno(e->swap_file_number); if (e->swap_status == SWAPOUT_DONE) - storeDirUpdateSwapSize(e->swap_file_number, e->swap_file_sz, -1); + if (EBIT_TEST(e->flag, ENTRY_VALIDATED)) + storeDirUpdateSwapSize(e->swap_file_number, e->swap_file_sz, -1); if (!EBIT_TEST(e->flag, KEY_PRIVATE)) storeDirSwapLog(e, SWAP_LOG_DEL); }