]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Don't be so verbose about not yet implemented store meta data types
authorhno <>
Sat, 15 Dec 2007 02:48:51 +0000 (02:48 +0000)
committerhno <>
Sat, 15 Dec 2007 02:48:51 +0000 (02:48 +0000)
src/StoreMeta.cc
src/enums.h

index df5b9fa4eea140bae570dca0613c949d4d5b966c..62db930241ea779cd379cb3462260dfb580a1028 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: StoreMeta.cc,v 1.6 2007/09/19 08:54:51 hno Exp $
+ * $Id: StoreMeta.cc,v 1.7 2007/12/14 19:48:51 hno Exp $
  *
  * DEBUG: section 20    Storage Manager Swapfile Metadata
  * AUTHOR: Kostas Anagnostakis
@@ -48,12 +48,17 @@ bool
 StoreMeta::validType(char type)
 {
     /* VOID is reserved, and new types have to be added as classes */
-
-    if (type <= STORE_META_VOID || type >= STORE_META_END) {
+    if (type <= STORE_META_VOID || type >= STORE_META_END + 10) {
         debugs(20, 0, "storeSwapMetaUnpack: bad type (" << type << ")!");
         return false;
     }
 
+    /* Not yet implemented */
+    if (type >= STORE_META_END) {
+        debugs(20, 3, "storeSwapMetaUnpack: Not yet implemented (" << type << ") in disk metadata");
+        return false;
+    }
+
     /* Unused in any current squid code */
     if (type == STORE_META_KEY_URL ||
             type == STORE_META_KEY_SHA ||
index cfa5078e73c43511e28e0aedf1890f8a79fd43f4..72da6d4a5c0265b9d7c7238c941c7966ebe5e127 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: enums.h,v 1.258 2007/08/13 17:20:51 hno Exp $
+ * $Id: enums.h,v 1.259 2007/12/14 19:48:51 hno Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -442,6 +442,7 @@ enum {
     STORE_META_VARY_HEADERS,   /* Stores Vary request headers */
     STORE_META_STD_LFS,         /* standard metadata in lfs format */
     STORE_META_OBJSIZE,         /* object size, not impleemented, squid26 compatibility */
+    /* STORE_META_VARY_ID,     / * Unique ID linking variants */
     STORE_META_END
 };