mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
do not pass the version to dns_db_createiterator()
This commit is contained in:
@@ -310,8 +310,7 @@ dns_db_printnode(dns_db_t *db, dns_dbnode_t *node, FILE *out) {
|
||||
***/
|
||||
|
||||
dns_result_t
|
||||
dns_db_createiterator(dns_db_t *db, dns_dbversion_t *version,
|
||||
isc_boolean_t relative_names,
|
||||
dns_db_createiterator(dns_db_t *db, isc_boolean_t relative_names,
|
||||
dns_dbiterator_t **iteratorp)
|
||||
{
|
||||
/*
|
||||
@@ -321,8 +320,7 @@ dns_db_createiterator(dns_db_t *db, dns_dbversion_t *version,
|
||||
REQUIRE(DNS_DB_VALID(db));
|
||||
REQUIRE(iteratorp != NULL && *iteratorp == NULL);
|
||||
|
||||
return (db->methods->createiterator(db, version, relative_names,
|
||||
iteratorp));
|
||||
return (db->methods->createiterator(db, relative_names, iteratorp));
|
||||
}
|
||||
|
||||
/***
|
||||
|
@@ -98,7 +98,6 @@ typedef struct dns_dbmethods {
|
||||
void (*printnode)(dns_db_t *db, dns_dbnode_t *node,
|
||||
FILE *out);
|
||||
dns_result_t (*createiterator)(dns_db_t *db,
|
||||
dns_dbversion_t *version,
|
||||
isc_boolean_t relative_names,
|
||||
dns_dbiterator_t **iteratorp);
|
||||
dns_result_t (*findrdataset)(dns_db_t *db, dns_dbnode_t *node,
|
||||
@@ -604,19 +603,13 @@ dns_db_printnode(dns_db_t *db, dns_dbnode_t *node, FILE *out);
|
||||
***/
|
||||
|
||||
dns_result_t
|
||||
dns_db_createiterator(dns_db_t *db, dns_dbversion_t *version,
|
||||
isc_boolean_t relative_names,
|
||||
dns_db_createiterator(dns_db_t *db, isc_boolean_t relative_names,
|
||||
dns_dbiterator_t **iteratorp);
|
||||
/*
|
||||
* Create an iterator for version 'version' of 'db'.
|
||||
*
|
||||
* Notes:
|
||||
*
|
||||
* If 'version' is NULL, then the current version will be used.
|
||||
*
|
||||
* If a non-NULL version is specified, the iterator will create its
|
||||
* own reference to it, so the caller need not keep its reference open.
|
||||
*
|
||||
* If 'relative_names' is ISC_TRUE, then node names returned by the
|
||||
* iterator will be relative to the iterator's current origin. If
|
||||
* ISC_FALSE, then the node names will be absolute.
|
||||
@@ -625,8 +618,6 @@ dns_db_createiterator(dns_db_t *db, dns_dbversion_t *version,
|
||||
*
|
||||
* 'db' is a valid database.
|
||||
*
|
||||
* version == NULL, or is a valid read-only version.
|
||||
*
|
||||
* iteratorp != NULL && *iteratorp == NULL
|
||||
*
|
||||
* Ensures:
|
||||
|
Reference in New Issue
Block a user