]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Reduced the size of CacheEntry
authorrousskov <>
Mon, 30 Mar 1998 04:01:49 +0000 (04:01 +0000)
committerrousskov <>
Mon, 30 Mar 1998 04:01:49 +0000 (04:01 +0000)
src/cache_diff.cc

index 6a60c6d663eb72dea2080cc0294c586a29dd10d8..ffcfbf52b9769f255f29c424fdce533b31cdf912 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cache_diff.cc,v 1.5 1998/03/29 20:42:46 rousskov Exp $
+ * $Id: cache_diff.cc,v 1.6 1998/03/29 21:01:49 rousskov Exp $
  *
  * AUTHOR: Alex Rousskov
  *
@@ -48,7 +48,8 @@ typedef struct {
 typedef struct _CacheEntry {
     const cache_key *key;
     struct _CacheEntry *next;
-    storeSwapLogData s;
+    /* storeSwapLogData s; */
+    unsigned char key_arr[MD5_DIGEST_CHARS];
 } CacheEntry;
 
 
@@ -74,8 +75,9 @@ cacheEntryCreate(const storeSwapLogData *s)
 {
     CacheEntry *e = xcalloc(1, sizeof(CacheEntry));
     assert(s);
-    e->s = *s;
-    e->key = &e->s.key[0];
+    /* e->s = *s; */
+    xmemcpy(e->key_arr, s->key, MD5_DIGEST_CHARS);
+    e->key = &e->key_arr[0];
     return e;
 }