]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1644. [bug] Update the journal modification time after a
authorMark Andrews <marka@isc.org>
Fri, 4 Jun 2004 02:41:39 +0000 (02:41 +0000)
committerMark Andrews <marka@isc.org>
Fri, 4 Jun 2004 02:41:39 +0000 (02:41 +0000)
                        sucessfull refresh query. [RT #11436]

CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 72421c017c439a132d31aa43016d13e0a2250a90..d42a0843616c481c7bc69ce460f8c99c11670a1a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
 1646.  [bug]           win32: logging file versions didn't work with
                        non-UNC filenames.  [RT#11486]
 
+1644.  [bug]           Update the journal modification time after a
+                       sucessfull refresh query. [RT #11436]
+
 1643.  [bug]           dns_db_closeversion() could leak memory / node
                        references. [RT #11163]
 
index 35a1e43c26d760881606723a5540be9883ea4d9d..10d4a0253a53fc6f5aa34dd72664ef8eff99f59b 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: zone.c,v 1.333.2.32 2004/04/28 04:23:34 marka Exp $ */
+/* $Id: zone.c,v 1.333.2.33 2004/06/04 02:41:39 marka Exp $ */
 
 #include <config.h>
 
@@ -3322,7 +3322,12 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
                        dns_message_destroy(&msg);
        } else if (isc_serial_eq(soa.serial, zone->serial)) {
                if (zone->masterfile != NULL) {
-                       result = isc_file_settime(zone->masterfile, &now);
+                       result = ISC_R_FAILURE;
+                       if (zone->journal != NULL)
+                               result = isc_file_settime(zone->journal, &now);
+                       if (result != ISC_R_SUCCESS)
+                               result = isc_file_settime(zone->masterfile,
+                                                         &now);
                        if (result != ISC_R_SUCCESS)
                                dns_zone_log(zone, ISC_LOG_ERROR,
                                             "refresh: could not set file "