You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeff Trawick <tr...@attglobal.net> on 2001/08/24 19:00:36 UTC

Re: cvs commit: httpd-2.0/modules/experimental config.m4 mod_mem_cache.c

trawick@apache.org writes:

>   don't segfault if we don't have/need a lock
>   Index: mod_mem_cache.c

>   -    apr_lock_acquire(sconf->lock);
>   +    /* XXX Need a way to insert into the cache w/o such coarse grained locking */
>   +    if (sconf->lock) {
>   +        apr_lock_acquire(sconf->lock);
>   +    }

it would be kind of cool to have an APR noop lock to avoid this kind
of ugliness; wasted pathlength but prettier :)

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...