r268 - trunk/varnish-cache/bin/varnishd

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Jun 29 19:11:53 CEST 2006


In message <20060629170924.E85FD1EC233 at projects.linpro.no>, phk at projects.linpro
.no writes:
>Author: phk
>Date: 2006-06-29 19:09:24 +0200 (Thu, 29 Jun 2006)
>New Revision: 268
>
>Log:
>Add the ability to instantly ban/purge all cached objects matching
>a given regexp.

The fact that we can do this in 87 lines, and without any locking
(provided we're willing to leak the memory for the bans themselves)
amazes me to no end...

Reclaiming the memory for the bans would require a mutex operation
to refcount the bans, for now: live without it.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-commit mailing list