]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
hno squid-2.4.DEVEL3-hno.devel.MD5_mismatch_warning.patch
authorhno <>
Tue, 30 May 2000 15:24:34 +0000 (15:24 +0000)
committerhno <>
Tue, 30 May 2000 15:24:34 +0000 (15:24 +0000)
Fixes some bogous bogous MD5 key mismatch warnings when using
the aufs or diskd stores. This is due to their asyncronous nature where
objects might get removed from the cache while they are being read from
disk.

Also rearranged the ChangeLog somewhat since Duane apparently have made
an internal Squid-2.4.DEVEL3 release..

ChangeLog
src/store_client.cc

index a03c596d8a1b71a7f0b5c0fe7581d0b2ae79c545..6079e7ebc9a4097eaf342795e20faba9b408784d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,6 @@
 
-Changes to Squid-2.4.DEVEL3 ():
+Changes to Squid ():
 
-       - Added Logfile module.
-       - Added DISKD stats via cachemgr.
-       - Added squid.conf options for DISKD magic constants.
        - Added --enable-auth-modules=... configure option
        - Improved ICP dead peer detection to also work when the workload
          is low
@@ -61,8 +58,16 @@ Changes to Squid-2.4.DEVEL3 ():
          a more modular fashion. The object replacement and IO is now
          responsibility of the storage directory, and not of the storage
          manager.
+       - Fixed a bogous MD5 mismatch warning sometimes seen when using
+         aufs or diskd stores
+
+Changes to Squid-2.4.DEVEL3 ():
+
+       - Added Logfile module.
+       - Added DISKD stats via cachemgr.
+       - Added squid.conf options for DISKD magic constants.
 
-Changes to Squid-2.4.DEVEL2 ():
+Changes to Squid-2.4.DEVEL2 (Feb 29, 2000):
 
 Changes to Squid-2.4.DEVEL1 ():
 
index 5bdaf27b2976faca7cd70bed9c93bac8f718da30..b85c8775f6b2427d9863709bbbd2d483bb39b42a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_client.cc,v 1.91 2000/05/28 17:35:04 wessels Exp $
+ * $Id: store_client.cc,v 1.92 2000/05/30 09:24:35 hno Exp $
  *
  * DEBUG: section 20    Storage Manager Client-Side Interface
  * AUTHOR: Duane Wessels
@@ -408,10 +408,12 @@ storeClientReadHeader(void *data, const char *buf, ssize_t len)
        switch (t->type) {
        case STORE_META_KEY:
            assert(t->length == MD5_DIGEST_CHARS);
-           if (memcmp(t->value, e->key, MD5_DIGEST_CHARS)) {
+           if (!EBIT_TEST(e->flags, KEY_PRIVATE) &&
+                   memcmp(t->value, e->key, MD5_DIGEST_CHARS)) {
                debug(20, 1) ("WARNING: swapin MD5 mismatch\n");
                debug(20, 1) ("\t%s\n", storeKeyText(t->value));
                debug(20, 1) ("\t%s\n", storeKeyText(e->key));
+               swap_object_ok = 0;
            }
            break;
        case STORE_META_URL: