Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 33876 invoked by uid 500); 30 Apr 2002 00:06:17 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 33865 invoked by uid 500); 30 Apr 2002 00:06:17 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 30 Apr 2002 00:06:16 -0000 Message-ID: <20020430000616.89637.qmail@icarus.apache.org> From: stoddard@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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--;