mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
261 [func] Add dns_zone_markdirty().
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
261 [func] Add dns_zone_markdirty().
|
||||||
|
|
||||||
260. [bug] Running named as a non-root user failed on Linux
|
260. [bug] Running named as a non-root user failed on Linux
|
||||||
kernels new enough to support retaining capabilities
|
kernels new enough to support retaining capabilities
|
||||||
after setuid().
|
after setuid().
|
||||||
|
@@ -287,6 +287,15 @@ dns_zone_setdbtype(dns_zone_t *zone, const char *db_type);
|
|||||||
* ISC_R_SUCCESS
|
* ISC_R_SUCCESS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void
|
||||||
|
dns_zone_markdirty(dns_zone_t *zone);
|
||||||
|
/*
|
||||||
|
* Mark a zone as 'dirty'.
|
||||||
|
*
|
||||||
|
* Require:
|
||||||
|
* 'zone' to be a valid zone.
|
||||||
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
dns_zone_expire(dns_zone_t *zone);
|
dns_zone_expire(dns_zone_t *zone);
|
||||||
/*
|
/*
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -1381,6 +1381,15 @@ dns_zone_maintenance(dns_zone_t *zone) {
|
|||||||
(void) zone_settimer(zone, now);
|
(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
|
void
|
||||||
dns_zone_expire(dns_zone_t *zone) {
|
dns_zone_expire(dns_zone_t *zone) {
|
||||||
REQUIRE(DNS_ZONE_VALID(zone));
|
REQUIRE(DNS_ZONE_VALID(zone));
|
||||||
|
Reference in New Issue
Block a user