Re: [PATCH 01/13] Add a EXP_NukeLRU() function to nuke an entire LRU structure at a time.

2012-10-09 Thread Poul-Henning Kamp
In message <1349087180-11089-1-git-send-email-mar...@varnish-software.com>, Mar tin Blix Grydeland writes: I may have asked this before, but why not simply make a local VTAILQ_HEAD on the stack and move everything there in one iteration ? Is it to not block the mutex'es too long ? Poul-Henning

[PATCH 01/13] Add a EXP_NukeLRU() function to nuke an entire LRU structure at a time.

2012-10-01 Thread Martin Blix Grydeland
--- bin/varnishd/cache/cache.h|1 + bin/varnishd/cache/cache_expire.c | 59 + 2 files changed, 60 insertions(+) diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h index 15db84c..7533782 100644 --- a/bin/varnishd/cache/cache.h +++

[PATCH 01/13] Add a EXP_NukeLRU() function to nuke an entire LRU structure at a time.

2012-09-28 Thread Martin Blix Grydeland
Comments from review: + struct objcore *oc_array[10]; > [...] > + while (n < 10) { > That's a no-go, #define or sizeof please. Changes: Changed to use a #define for the buffer size Martin -- Martin Blix Grydeland Varnish Software AS 0001-Add-a-EXP_NukeLRU-function-to-nu