2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Rewrite managed-key journal immediately

Both managed keys and regular zone journals need to be updated
immediately when a recoverable error is discovered.
This commit is contained in:
Mark Andrews
2021-04-01 15:22:55 +11:00
committed by Ondřej Surý
parent 83310ffd92
commit 0fbdf189c7

View File

@@ -5209,18 +5209,16 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime,
result = ISC_R_SUCCESS; result = ISC_R_SUCCESS;
if (needdump) { if (needdump) {
if (zone->type == dns_zone_key) {
zone_needdump(zone, 30);
} else {
if (fixjournal) { if (fixjournal) {
DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_FIXJOURNAL); DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_FIXJOURNAL);
zone_journal_compact(zone, zone->db, 0); zone_journal_compact(zone, zone->db, 0);
zone_needdump(zone, 0); zone_needdump(zone, 0);
} else if (zone->type == dns_zone_key) {
zone_needdump(zone, 30);
} else { } else {
zone_needdump(zone, DNS_DUMP_DELAY); zone_needdump(zone, DNS_DUMP_DELAY);
} }
} }
}
if (zone->task != NULL) { if (zone->task != NULL) {
if (zone->type == dns_zone_master) { if (zone->type == dns_zone_master) {