[Opendnssec-commits] [svn.opendnssec.org/svn/dnssec] r5987 - trunk/OpenDNSSEC/signer/src/signer

matthijs at nlnetlabs.nl matthijs at nlnetlabs.nl
Tue Jan 3 12:28:02 CET 2012


Author: matthijs
Date: 2012-01-03 12:28:02 +0100 (Tue, 03 Jan 2012)
New Revision: 5987

Modified:
   trunk/OpenDNSSEC/signer/src/signer/namedb.c
   trunk/OpenDNSSEC/signer/src/signer/zone.c
Log:
purge ixfr after zone recovery



Modified: trunk/OpenDNSSEC/signer/src/signer/namedb.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/namedb.c	2012-01-03 09:32:48 UTC (rev 5986)
+++ trunk/OpenDNSSEC/signer/src/signer/namedb.c	2012-01-03 11:28:02 UTC (rev 5987)
@@ -1019,6 +1019,10 @@
 
     if (db && db->denials) {
         zone = (zone_type*) db->zone;
+        ods_log_assert(zone);
+        ods_log_assert(zone->name);
+        ods_log_debug("[%s] wipe denial of existence space zone %s", db_str,
+            zone->name);
         node = ldns_rbtree_first(db->denials);
         while (node && node != LDNS_RBTREE_NULL) {
             denial = (denial_type*) node->data;

Modified: trunk/OpenDNSSEC/signer/src/signer/zone.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/zone.c	2012-01-03 09:32:48 UTC (rev 5986)
+++ trunk/OpenDNSSEC/signer/src/signer/zone.c	2012-01-03 11:28:02 UTC (rev 5987)
@@ -980,6 +980,7 @@
         /* all ok */
         namedb_diff(zone->db, 0);
         zone->db->is_initialized = 1;
+        ixfr_purge(zone->ixfr);
         if (zone->stats) {
             lock_basic_lock(&zone->stats->stats_lock);
             stats_clear(zone->stats);




More information about the Opendnssec-commits mailing list