httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: mod_disk_cache: making commit_entity() atomic
Date Fri, 17 Sep 2010 13:13:11 GMT
On 17 Sep 2010, at 1:41 PM, Niklas Edmundsson wrote:

> I personally favor designs needs at most O_EXCL style write locking.
>
> Having been bitten by various lock-related issues over the years I'm  
> in favor of a explicit-lock-free design if it can be done cleanly  
> and with good performance.
>
> If going this route, I'd suggest to put the entire path to the data  
> file in the header and not just a uniqifying string (to make it  
> easier to split hashing of header and data in the future).

The problem with this is that if you bake the location of the file  
into the cache, you would never be able to move the cache around.

Is there a benefit to keeping headers and bodies separate?

Regards,
Graham
--


Mime
View raw message