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:
parent
83310ffd92
commit
0fbdf189c7
@ -5209,18 +5209,16 @@ 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) {
|
||||
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 if (zone->type == dns_zone_key) {
|
||||
zone_needdump(zone, 30);
|
||||
} else {
|
||||
zone_needdump(zone, DNS_DUMP_DELAY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (zone->task != NULL) {
|
||||
if (zone->type == dns_zone_master) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user