mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
replay the journal on the initial load only,
as it is not needed on subsequent loads and will fail if the zone is a newly edited zone with ixfr-on-differences enabled
This commit is contained in:
parent
da4535c4b4
commit
115019ee2c
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.c,v 1.345 2001/09/12 03:46:32 marka Exp $ */
|
/* $Id: zone.c,v 1.346 2001/09/12 18:44:54 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -1202,9 +1202,11 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime,
|
|||||||
else
|
else
|
||||||
DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_HASINCLUDE);
|
DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_HASINCLUDE);
|
||||||
/*
|
/*
|
||||||
* Apply update log, if any.
|
* Apply update log, if any, on initial load.
|
||||||
*/
|
*/
|
||||||
if (zone->journal != NULL) {
|
if (zone->journal != NULL &&
|
||||||
|
! DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED))
|
||||||
|
{
|
||||||
result = dns_journal_rollforward(zone->mctx, db,
|
result = dns_journal_rollforward(zone->mctx, db,
|
||||||
zone->journal);
|
zone->journal);
|
||||||
if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND &&
|
if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user