mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-25 16:18:03 -04: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:
parent
c758ad35e7
commit
562cc4924b
1 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue