]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
replan: move zone_notifailed_clear() to zonedb-load for consistency
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 8 Oct 2025 12:45:55 +0000 (14:45 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Wed, 8 Oct 2025 15:00:13 +0000 (17:00 +0200)
src/knot/events/replan.c
src/knot/zone/zonedb-load.c

index 8d66a81a70160f887e9999f6b16e3eaa327a2026..703811252ffd8c3439019ab4ce8421d7c2632792 100644 (file)
@@ -194,7 +194,6 @@ void replan_load_current(conf_t *conf, zone_t *zone, zone_t *old_zone)
 
 void replan_load_updated(zone_t *zone, zone_t *old_zone)
 {
-       zone_notifailed_clear(zone);
        replan_from_zone(zone, old_zone);
 
        // other events will cascade from load
index cfbf6d6a4cb45c05fc489008a69e4c931598baa1..c4f13308456ded53ea22ae57821cb625fec42e3a 100644 (file)
@@ -81,6 +81,7 @@ static void replan_events(conf_t *conf, zone_t *zone, zone_t *old_zone)
 
        zone->events.ufrozen = old_zone->events.ufrozen;
        if ((zone_file_updated(conf, old_zone, zone->name) || conf_updated) && !zone_expired(zone)) {
+               zone_notifailed_clear(zone);
                replan_load_updated(zone, old_zone);
        } else {
                zone->zonefile = old_zone->zonefile;