From: Ondřej Surý Date: Thu, 31 Mar 2022 20:06:22 +0000 (+0200) Subject: Purge the .resched_event in dns_cache X-Git-Tag: v9.19.0~28^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f7ba679ace5bc15f78db1ea8284677c0bf1a110;p=thirdparty%2Fbind9.git Purge the .resched_event in dns_cache Instead of sweeping the cache cleaner tasks, purge the more specific cleaner.resched_event event. --- diff --git a/lib/dns/cache.c b/lib/dns/cache.c index bb4bea30521..b2d188ffc62 100644 --- a/lib/dns/cache.c +++ b/lib/dns/cache.c @@ -963,7 +963,7 @@ cleaner_shutdown_action(isc_task_t *task, isc_event_t *event) { } /* Make sure we don't reschedule anymore. */ - (void)isc_task_purge(task, NULL, DNS_EVENT_CACHECLEAN, NULL); + (void)isc_task_purgeevent(task, cache->cleaner.resched_event); isc_refcount_decrementz(&cache->live_tasks);