Commit 6bb7b678 authored by Bob Halley's avatar Bob Halley

do not pass the version to dns_db_createiterator()

parent a8166bf1
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment