You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/10/13 21:35:05 UTC
cvs commit: httpd-2.0/modules/experimental mod_cache.h mod_disk_cache.c
wrowe 2002/10/13 12:35:05
Modified: modules/experimental mod_cache.h mod_disk_cache.c
Log:
Temporary fix for the len type discrepancy, with documentation to be fixed.
Revision Changes Path
1.34 +7 -0 httpd-2.0/modules/experimental/mod_cache.h
Index: mod_cache.h
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_cache.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- mod_cache.h 12 Oct 2002 07:51:09 -0000 1.33
+++ mod_cache.h 13 Oct 2002 19:35:04 -0000 1.34
@@ -206,6 +206,13 @@
};
/* cache handle information */
+
+/* XXX TODO On the next structure change/MMN bump,
+ * count must become an apr_off_t, representing
+ * the potential size of disk cached objects.
+ * Then dig for
+ * "XXX Bad Temporary Cast - see cache_object_t notes"
+ */
typedef struct cache_object cache_object_t;
struct cache_object {
char *key;
1.41 +2 -1 httpd-2.0/modules/experimental/mod_disk_cache.c
Index: mod_disk_cache.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_disk_cache.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- mod_disk_cache.c 17 Sep 2002 05:37:39 -0000 1.40
+++ mod_disk_cache.c 13 Oct 2002 19:35:04 -0000 1.41
@@ -338,7 +338,8 @@
obj->vobj = dobj = apr_pcalloc(r->pool, sizeof(*dobj));
obj->key = apr_pstrdup(r->pool, key);
- obj->info.len = len;
+ /* XXX Bad Temporary Cast - see cache_object_t notes */
+ obj->info.len = (apr_size_t) len;
obj->complete = 0; /* Cache object is not complete */
dobj->name = obj->key;