]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Restart zone maintenance if it had been stalled.
authorMark Andrews <marka@isc.org>
Mon, 2 Mar 2020 23:50:06 +0000 (10:50 +1100)
committerMark Andrews <marka@isc.org>
Tue, 3 Mar 2020 21:45:34 +0000 (08:45 +1100)
lib/dns/zone.c

index 18b5172a1554e5d3b53fd918d36ca8e024ea9762..d1459c1919ebf7083f7d43a62b9f0e13eed4ef51 100644 (file)
@@ -5282,6 +5282,14 @@ done:
        if (inline_raw(zone) && DNS_ZONE_FLAG(zone->secure, DNS_ZONEFLG_LOADED))
        {
                DNS_ZONE_CLRFLAG(zone->secure, DNS_ZONEFLG_LOADPENDING);
+               /*
+                * Re-start zone maintenance if it had been stalled
+                * due to DNS_ZONEFLG_LOADPENDING being set when
+                * zone_maintenance was called.
+                */
+               if (zone->secure->task != NULL) {
+                       zone_settimer(zone->secure, &now);
+               }
        }
 
        zone_debuglog(zone, "zone_postload", 99, "done");