mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +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:
parent
83310ffd92
commit
0fbdf189c7
@ -5209,16 +5209,14 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime,
|
||||
result = ISC_R_SUCCESS;
|
||||
|
||||
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);
|
||||
} else {
|
||||
if (fixjournal) {
|
||||
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);
|
||||
}
|
||||
zone_needdump(zone, DNS_DUMP_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user