2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

when sending notifies is suppressed due to the zone being

unloaded, clear the NEEDNOTIFY flag so that we don't reschedule the
notify every second
This commit is contained in:
Andreas Gustafsson
2000-08-10 19:50:02 +00:00
parent c758ad35e7
commit 562cc4924b

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zone.c,v 1.181 2000/08/10 19:34:49 bwelling Exp $ */
/* $Id: zone.c,v 1.182 2000/08/10 19:50:02 gson Exp $ */
#include <config.h>
@@ -1523,10 +1523,9 @@ dns_zone_maintenance(dns_zone_t *zone) {
switch (zone->type) {
case dns_zone_master:
case dns_zone_slave:
if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED) &&
DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDNOTIFY)) {
if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDNOTIFY))
dns_zone_notify(zone);
}
break;
default:
break;
}
@@ -2092,6 +2091,9 @@ dns_zone_notify(dns_zone_t *zone) {
notifytype = zone->notifytype;
UNLOCK(&zone->lock);
if (! DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED))
return;
if (notifytype == dns_notifytype_no)
return;