From 9042745daed66fb7e4b3a7f728d453e0c2139b71 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 31 Oct 1997 05:40:39 +0000 Subject: [PATCH] compare lastref to e->lastref during store rebuild. Might regret this soon. --- src/store.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/store.cc b/src/store.cc index 25ed21f23e..ef1965517c 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.329 1997/10/30 20:37:56 wessels Exp $ + * $Id: store.cc,v 1.330 1997/10/30 22:40:39 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -1216,12 +1216,9 @@ storeDoRebuildFromDisk(void *data) e = storeGet(url); used = storeDirMapBitTest(sfileno); /* If this URL already exists in the cache, does the swap log - * appear to have a newer entry? Compare 'timestamp' from the - * swap log to e->lastref. Note, we can't compare e->timestamp - * because it is the Date: header from the HTTP reply and - * doesn't really tell us when the object was added to the - * cache. */ - newer = e ? (timestamp > e->lastref ? 1 : 0) : 0; + * appear to have a newer entry? Compare 'lastref' from the + * swap log to e->lastref. */ + newer = e ? (lastref > e->lastref ? 1 : 0) : 0; if (used && !newer) { /* log entry is old, ignore it */ RB->clashcount++; -- 2.47.3