]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 1908: store*DirRebuildFromSwapLog() ignores some SWAP_LOG_DEL entries
authorwessels <>
Thu, 1 Mar 2007 14:25:15 +0000 (14:25 +0000)
committerwessels <>
Thu, 1 Mar 2007 14:25:15 +0000 (14:25 +0000)
merged from squid-2 CVS

src/fs/ufs/ufscommon.cc

index 8775294a8a4937efb1a5fa924a70d59e1dd0075c..381511e758e2e1aeb7f428a9583b70629e703aac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ufscommon.cc,v 1.6 2006/08/19 12:31:24 robertc Exp $
+ * $Id: ufscommon.cc,v 1.7 2007/03/01 07:25:15 wessels Exp $
  * vim: set et : 
  *
  * DEBUG: section 47    Store Directory Routines
@@ -373,7 +373,7 @@ RebuildState::rebuildFromSwapLog()
              */
             currentEntry (Store::Root().get(swapData.key));
 
-            if (currentEntry() != NULL && swapData.lastref > e->lastref) {
+            if (currentEntry() != NULL && swapData.lastref >= e->lastref) {
                 /*
                  * Make sure we don't unlink the file, it might be
                  * in use by a subsequent entry.  Also note that