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, 30 Apr 2002 00:06:16 GMT
stoddard    02/04/29 17:06:16

  Modified:    modules/experimental mod_mem_cache.c
  Log:
  remove_entity should only work on complete cache_objects
  
  Revision  Changes    Path
  1.49      +1 -1      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.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- mod_mem_cache.c	29 Apr 2002 19:44:47 -0000	1.48
  +++ mod_mem_cache.c	30 Apr 2002 00:06:16 -0000	1.49
  @@ -487,7 +487,7 @@
       obj->cleanup = 1;
       obj = (cache_object_t *) apr_hash_get(sconf->cacheht, obj->key,
                                             APR_HASH_KEY_STRING);
  -    if (obj) {
  +    if (obj && obj->complete) {
           mem_cache_object_t *mobj = (mem_cache_object_t *) obj->vobj;
           apr_hash_set(sconf->cacheht, obj->key, strlen(obj->key), NULL);
           sconf->object_cnt--;
  
  
  

Mime
View raw message