2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

fetch contexts

This commit is contained in:
Michael Graff
1999-10-26 01:12:20 +00:00
parent fc4fe6e5e6
commit ea6228c9ce

View File

@@ -232,6 +232,9 @@ static void clean_handles_at_name(dns_adbname_t *, isc_eventtype_t);
static isc_result_t construct_name(dns_adb_t *, dns_adbhandle_t *,
dns_name_t *, dns_name_t *,
dns_adbname_t *, int, isc_stdtime_t);
static isc_result_t fetch_name(dns_adb_t *, dns_adbhandle_t *,
dns_name_t *, dns_name_t *,
dns_adbname_t *, int, isc_stdtime_t);
static inline isc_boolean_t check_exit(dns_adb_t *);
static void timer_cleanup(isc_task_t *, isc_event_t *);
static void destroy(dns_adb_t *);
@@ -1356,6 +1359,16 @@ dns_adb_lookup(dns_adb_t *adb, isc_task_t *task, isc_taskaction_t action,
goto found;
}
/*
* Try to start fetches.
*/
result = fetch_name(adb, handle, name, zone, adbname, bucket, now);
if (result == ISC_R_SUCCESS) {
ISC_LIST_PREPEND(adb->names[bucket], adbname, link);
adb->name_refcnt[bucket]++;
goto found;
}
goto fail;
/*
@@ -2012,6 +2025,14 @@ construct_name(dns_adb_t *adb, dns_adbhandle_t *handle, dns_name_t *name,
return (result);
}
static isc_result_t
fetch_name(dns_adb_t *adb, dns_adbhandle_t *handle, dns_name_t *name,
dns_name_t *zone, dns_adbname_t *adbname, int bucket,
isc_stdtime_t now)
{
return (ISC_R_NOMEMORY);
}
isc_result_t
dns_adb_marklame(dns_adb_t *adb, dns_adbaddrinfo_t *addr, dns_name_t *zone,
isc_stdtime_t expire_time)