Commit 3d989210 authored by Michael Graff's avatar Michael Graff
Browse files

print out (debug level 2) the number of nodes in the zone on axfr, ixfr, and load

parent 48d861c0
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: xfrin.c,v 1.87 2000/08/01 01:23:07 tale Exp $ */
/* $Id: xfrin.c,v 1.88 2000/08/04 13:26:47 explorer Exp $ */
#include <config.h>
......@@ -296,6 +296,9 @@ axfr_commit(dns_xfrin_ctx_t *xfr) {
CHECK(axfr_apply(xfr));
CHECK(dns_db_endload(xfr->db, &xfr->axfr.add_private));
xfrin_log(xfr, ISC_LOG_DEBUG(2),
"number of nodes in database: %u",
dns_db_nodecount(xfr->db));
CHECK(dns_zone_replacedb(xfr->zone, xfr->db, ISC_TRUE));
result = ISC_R_SUCCESS;
......@@ -373,6 +376,9 @@ ixfr_commit(dns_xfrin_ctx_t *xfr) {
if (xfr->ver != NULL) {
/* XXX enter ready-to-commit state here */
CHECK(dns_journal_commit(xfr->ixfr.journal));
xfrin_log(xfr, ISC_LOG_DEBUG(2),
"number of nodes in database: %u",
dns_db_nodecount(xfr->db));
dns_db_closeversion(xfr->db, &xfr->ver, ISC_TRUE);
}
result = ISC_R_SUCCESS;
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.174 2000/08/03 21:24:49 marka Exp $ */
/* $Id: zone.c,v 1.175 2000/08/04 13:26:48 explorer Exp $ */
#include <config.h>
......@@ -712,6 +712,9 @@ dns_zone_load(dns_zone_t *zone) {
goto cleanup;
}
zone_log(zone, me, ISC_LOG_DEBUG(2),
"number of nodes in database: %u",
dns_db_nodecount(db));
zone->loadtime = loadtime;
zone_log(zone, me, ISC_LOG_DEBUG(1), "loaded");
......
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