mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +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.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -1523,10 +1523,9 @@ dns_zone_maintenance(dns_zone_t *zone) {
|
|||||||
switch (zone->type) {
|
switch (zone->type) {
|
||||||
case dns_zone_master:
|
case dns_zone_master:
|
||||||
case dns_zone_slave:
|
case dns_zone_slave:
|
||||||
if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED) &&
|
if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDNOTIFY))
|
||||||
DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDNOTIFY)) {
|
|
||||||
dns_zone_notify(zone);
|
dns_zone_notify(zone);
|
||||||
}
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2092,6 +2091,9 @@ dns_zone_notify(dns_zone_t *zone) {
|
|||||||
notifytype = zone->notifytype;
|
notifytype = zone->notifytype;
|
||||||
UNLOCK(&zone->lock);
|
UNLOCK(&zone->lock);
|
||||||
|
|
||||||
|
if (! DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED))
|
||||||
|
return;
|
||||||
|
|
||||||
if (notifytype == dns_notifytype_no)
|
if (notifytype == dns_notifytype_no)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user