From d0207ee71b2567e84fef5a17d97bd2357abfc3ee Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 26 Jan 2006 22:56:04 +0000 Subject: [PATCH] 1955. [bug] Pre-allocate the cache cleaning interator. [RT #14998] Fix the CLEANER_IDLE macro to make this change complete. [RT #15815] --- lib/dns/cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dns/cache.c b/lib/dns/cache.c index e469d8c150..5708470736 100644 --- a/lib/dns/cache.c +++ b/lib/dns/cache.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: cache.c,v 1.67 2006/01/06 00:01:44 marka Exp $ */ +/* $Id: cache.c,v 1.68 2006/01/26 22:56:04 marka Exp $ */ /*! \file */ @@ -76,7 +76,6 @@ typedef enum { * Convenience macros for comprehensive assertion checking. */ #define CLEANER_IDLE(c) ((c)->state == cleaner_s_idle && \ - (c)->iterator == NULL && \ (c)->resched_event != NULL) #define CLEANER_BUSY(c) ((c)->state == cleaner_s_busy && \ (c)->iterator != NULL && \