4048. [bug] adb hash table was not being grown. [RT #38470]

(cherry picked from commit 4b36b9c1ff)
This commit is contained in:
Mark Andrews
2015-01-29 11:53:06 +11:00
parent 1e590ad71b
commit b8658b5b2e
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -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
+2 -2
View File
@@ -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);