[Opendnssec-commits] matthijs r7011 - trunk/OpenDNSSEC/signer/src/adapter

commits at svn.opendnssec.org commits at svn.opendnssec.org
Tue Feb 5 13:04:00 CET 2013


Author: matthijs
Date: Tue Feb  5 13:04:00 2013
New Revision: 7011
URL: http://fisheye.opendnssec.org/changelog/opendnssec?cs=7011

Log:
SUPPORT-50
SUPPORT-51
OPENDNSSEC-389

Modified:
   trunk/OpenDNSSEC/signer/src/adapter/addns.c

Modified: trunk/OpenDNSSEC/signer/src/adapter/addns.c
==============================================================================
--- trunk/OpenDNSSEC/signer/src/adapter/addns.c	Tue Feb  5 12:30:47 2013	(r7010)
+++ trunk/OpenDNSSEC/signer/src/adapter/addns.c	Tue Feb  5 13:04:00 2013	(r7011)
@@ -376,18 +376,17 @@
         }
     }
     /* input zone ok, set inbound serial and apply differences */
-    if (result == ODS_STATUS_OK || result == ODS_STATUS_UNCHANGED) {
+    if (result == ODS_STATUS_OK) {
         adapi_set_serial(zone, new_serial);
         if (is_axfr) {
             adapi_trans_full(zone, 1);
         } else {
             adapi_trans_diff(zone, 1);
         }
-        if (result == ODS_STATUS_UNCHANGED) {
-            result = ODS_STATUS_OK;
-        }
     }
     if (result == ODS_STATUS_UPTODATE) {
+        /* do a transaction for DNSKEY and NSEC3PARAM */
+        adapi_trans_diff(zone, 1);
         result = ODS_STATUS_OK;
     }
     return result;
@@ -669,6 +668,8 @@
         if (!z->xfrd->serial_disk_acquired) {
             return ODS_STATUS_XFR_NOT_READY;
         }
+        /* do a transaction for DNSKEY and NSEC3PARAM */
+        adapi_trans_diff(z, 0);
         return ODS_STATUS_UNCHANGED;
     }
     /* copy zone transfers */



More information about the Opendnssec-commits mailing list