[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4104 - trunk/OpenDNSSEC/signer/src/signer

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Oct 14 10:59:07 CEST 2010


Author: matthijs
Date: 2010-10-14 10:59:07 +0200 (Thu, 14 Oct 2010)
New Revision: 4104

Modified:
   trunk/OpenDNSSEC/signer/src/signer/tools.c
Log:
also cancel update if read zone failed (or any other action prior to executing
update) pivotal story http://www.pivotaltracker.com/story/show/5677996



Modified: trunk/OpenDNSSEC/signer/src/signer/tools.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/tools.c	2010-10-14 08:34:44 UTC (rev 4103)
+++ trunk/OpenDNSSEC/signer/src/signer/tools.c	2010-10-14 08:59:07 UTC (rev 4104)
@@ -93,6 +93,8 @@
         zone_backup_state(zone);
         zone->stats->start_time = start;
         zone->stats->sort_time = (end-start);
+    } else {
+        zonedata_cancel_update(zone->zonedata);
     }
     return error;
 }
@@ -113,6 +115,8 @@
     error = zone_add_dnskeys(zone);
     if (!error) {
         zone_backup_state(zone);
+    } else {
+        zonedata_cancel_update(zone->zonedata);
     }
     return error;
 }




More information about the Opendnssec-commits mailing list