2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

261 [func] Add dns_zone_markdirty().

This commit is contained in:
Mark Andrews 2000-06-19 23:05:32 +00:00
parent f5aa0fb80d
commit 242dfd9cc6
3 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,5 @@
261 [func] Add dns_zone_markdirty().
260. [bug] Running named as a non-root user failed on Linux
kernels new enough to support retaining capabilities
after setuid().

View File

@ -287,6 +287,15 @@ dns_zone_setdbtype(dns_zone_t *zone, const char *db_type);
* ISC_R_SUCCESS
*/
void
dns_zone_markdirty(dns_zone_t *zone);
/*
* Mark a zone as 'dirty'.
*
* Require:
* 'zone' to be a valid zone.
*/
void
dns_zone_expire(dns_zone_t *zone);
/*

View File

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: zone.c,v 1.148 2000/06/15 17:40:18 gson Exp $ */
/* $Id: zone.c,v 1.149 2000/06/19 23:05:30 marka Exp $ */
#include <config.h>
@ -1381,6 +1381,15 @@ dns_zone_maintenance(dns_zone_t *zone) {
(void) zone_settimer(zone, now);
}
void
dns_zone_markdirty(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
LOCK(&zone->lock);
zone->flags |= DNS_ZONEFLG_NEEDDUMP;
UNLOCK(&zone->lock);
}
void
dns_zone_expire(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));