2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +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,16 +5209,14 @@ 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) { if (fixjournal) {
DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_FIXJOURNAL);
zone_journal_compact(zone, zone->db, 0);
zone_needdump(zone, 0);
} else if (zone->type == dns_zone_key) {
zone_needdump(zone, 30); zone_needdump(zone, 30);
} else { } else {
if (fixjournal) { zone_needdump(zone, DNS_DUMP_DELAY);
DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_FIXJOURNAL);
zone_journal_compact(zone, zone->db, 0);
zone_needdump(zone, 0);
} else {
zone_needdump(zone, DNS_DUMP_DELAY);
}
} }
} }