2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Add ISC_R_NOMORE to dlz_minimal.h, document its use in findzone() routines.

No CHANGES note.
This commit is contained in:
Evan Hunt 2011-11-11 01:00:40 +00:00
parent 98a0f15878
commit 2db105b04c
2 changed files with 7 additions and 3 deletions

View File

@ -110,9 +110,12 @@ are mandatory, others optional).
- isc_result_t dlz_findzonedb(void *dbdata, const char *name); - isc_result_t dlz_findzonedb(void *dbdata, const char *name);
Required for all external DLZ modules. This indicates whether the Required for all external DLZ modules. This indicates whether
DLZ module can answer for a given zone. Returns ISC_R_SUCCESS if the DLZ module can answer for the given name. Returns ISC_R_SUCCESS
so, otherwise ISC_R_NOTFOUND. if so, and ISC_R_NOTFOUND if not. As an optimization, it can
also return ISC_R_NOMORE: this indicates that the DLZ module has
no data for the given name or for any name above it in the DNS.
This prevents named from searching for a zone cut.
- isc_result_t dlz_lookup(const char *zone, const char *name, void *dbdata, - isc_result_t dlz_lookup(const char *zone, const char *name, void *dbdata,
dns_sdlzlookup_t *lookup, dns_sdlzlookup_t *lookup,

View File

@ -47,6 +47,7 @@ typedef uint32_t dns_ttl_t;
#define ISC_R_NOPERM 6 #define ISC_R_NOPERM 6
#define ISC_R_NOTFOUND 23 #define ISC_R_NOTFOUND 23
#define ISC_R_FAILURE 25 #define ISC_R_FAILURE 25
#define ISC_R_NOMORE 29
/* boolean values */ /* boolean values */
#define ISC_TRUE 1 #define ISC_TRUE 1