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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user