From b8658b5b2e78216fdae3b4915e2e8bbfb115e3ec Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 29 Jan 2015 11:50:30 +1100 Subject: [PATCH] 4048. [bug] adb hash table was not being grown. [RT #38470] (cherry picked from commit 4b36b9c1fff56d836feeaa1dc7eb1d4676d9c8bb) --- CHANGES | 2 ++ lib/dns/adb.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 882dd59660..72411eec68 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +4048. [bug] adb hash table was not being grown. [RT #38470] + --- 9.9.7rc1 released --- 4047. [cleanup] "named -V" now reports the current running versions diff --git a/lib/dns/adb.c b/lib/dns/adb.c index a9ffd2ad9f..55bc466ef3 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -1768,12 +1768,12 @@ new_adbentry(dns_adb_t *adb) { ISC_LINK_INIT(e, plink); LOCK(&adb->entriescntlock); adb->entriescnt++; - if (!adb->growentries_sent && adb->growentries_sent && + if (!adb->growentries_sent && adb->excl != NULL && adb->entriescnt > (adb->nentries * 8)) { isc_event_t *event = &adb->growentries; inc_adb_irefcnt(adb); - isc_task_send(adb->task, &event); + isc_task_send(adb->excl, &event); adb->growentries_sent = ISC_TRUE; } UNLOCK(&adb->entriescntlock);