Re: max-cache-size doesn't work with 9.5.0b1

2008-02-03 Thread Mark Andrews
vision 1.76 diff -u -r1.76 cache.c --- lib/dns/cache.c 19 Oct 2007 17:15:53 - 1.76 +++ lib/dns/cache.c 4 Feb 2008 00:29:51 - @@ -708,8 +708,11 @@ LOCK(&cache->cleaner.lock); -dns_db_overmem(cache->db, overmem); -cache->cleaner.overmem = overmem; +

Re: max-cache-size doesn't work with 9.5.0b1

2008-02-03 Thread Mark Andrews
(ctx->water)(ctx->water_arg, ISC_MEM_LOWATER); } +void +isc_mem_water(isc_mem_t *ctx, int flag) { + REQUIRE(VALID_CONTEXT(ctx)); + + MCTXLOCK(ctx, &ctx->lock); + if (flag == ISC_MEM_LOWATER) + ctx->hi_called = ISC_FALSE; + else if (flag