1644. [bug] Update the journal modification time after a

sucessfull refresh query. [RT #11436]
This commit is contained in:
Mark Andrews 2004-06-04 02:40:50 +00:00
parent c315e5cfea
commit 6ecbd11029
2 changed files with 9 additions and 3 deletions

View file

@ -12,7 +12,8 @@
1645. [bug] named could trigger a REQUIRE failure if multiple
masters with keys are specified.
1644. [placeholder] rt11436
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]

View file

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.415 2004/05/28 23:53:46 marka Exp $ */
/* $Id: zone.c,v 1.416 2004/06/04 02:40:50 marka Exp $ */
#include <config.h>
@ -3622,7 +3622,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);
/* Someone removed the file from underneath us! */
if (result == ISC_R_FILENOTFOUND) {
LOCK_ZONE(zone);