httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c
Date Tue, 12 Mar 2002 22:05:21 GMT
stoddard    02/03/12 14:05:21

  Modified:    modules/experimental mod_mem_cache.c
  Log:
  Remove some deprecated comments.  Delete some unused variables.
  
  Revision  Changes    Path
  1.33      +1 -10     httpd-2.0/modules/experimental/mod_mem_cache.c
  
  Index: mod_mem_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_mem_cache.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- mod_mem_cache.c	12 Mar 2002 03:00:35 -0000	1.32
  +++ mod_mem_cache.c	12 Mar 2002 22:05:21 -0000	1.33
  @@ -75,10 +75,6 @@
    * malloc/free rather than pools to manage their storage requirements.
    */
   
  -/*
  - * XXX Introduce a type field that identifies whether the cache obj
  - * references malloc'ed or mmap storage or a file descriptor
  - */
   typedef enum {
       CACHE_TYPE_FILE = 1,
       CACHE_TYPE_HEAP,
  @@ -194,7 +190,6 @@
   static apr_status_t decrement_refcount(void *arg) 
   {
       cache_object_t *obj = (cache_object_t *) arg;
  -    mem_cache_object_t *mobj = (mem_cache_object_t*) obj->vobj;
   
       if (sconf->lock) {
           apr_thread_mutex_lock(sconf->lock);
  @@ -214,7 +209,6 @@
   static apr_status_t cleanup_cache_mem(void *sconfv)
   {
       cache_object_t *obj;
  -    mem_cache_object_t *mobj;
       apr_hash_index_t *hi;
       mem_cache_conf *co = (mem_cache_conf*) sconfv;
   
  @@ -222,14 +216,13 @@
           return APR_SUCCESS;
       }
   
  -    /* Iterate over the frag hash table and clean up each entry */
  +    /* Iterate over the cache and clean up each entry */
       if (sconf->lock) {
           apr_thread_mutex_lock(sconf->lock);
       }
       for (hi = apr_hash_first(NULL, co->cacheht); hi; hi=apr_hash_next(hi)) {
           apr_hash_this(hi, NULL, NULL, (void **)&obj);
           if (obj) {
  -            mobj = (mem_cache_object_t *) obj->vobj;
               if (obj->refcount) {
                   obj->cleanup = 1;
               }
  @@ -339,8 +332,6 @@
        * rather than after the cache object has been completely built and
        * initialized...
        * XXX Need a way to insert into the cache w/o such coarse grained locking 
  -     * XXX Need to enable caching multiple cache objects (representing different
  -     * views of the same content) under a single search key
        */
       if (sconf->lock) {
           apr_thread_mutex_lock(sconf->lock);
  
  
  

Mime
View raw message