Commit 7201d2e1 authored by Mark Andrews's avatar Mark Andrews
Browse files

Unconditionally set the zone timer in xfrdone.

parent 8e191edd
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: zone.c,v 1.87 2000/03/20 19:37:38 gson Exp $ */
/* $Id: zone.c,v 1.88 2000/03/21 00:17:15 marka Exp $ */
#include <config.h>
......@@ -3029,16 +3029,15 @@ xfrdone(dns_zone_t *zone, isc_result_t result) {
INSIST((zone->flags & DNS_ZONE_F_REFRESH) != 0);
zone->flags &= ~DNS_ZONE_F_REFRESH;
isc_stdtime_get(&now);
switch (result) {
case DNS_R_UPTODATE:
case DNS_R_SUCCESS:
isc_stdtime_get(&now);
if (DNS_ZONE_FLAG(zone, DNS_ZONE_F_NEEDREFRESH)) {
zone->flags &= ~DNS_ZONE_F_NEEDREFRESH;
zone->refreshtime = now;
} else
zone->refreshtime = now + zone->refresh;
zone_settimer(zone, now);
break;
default:
......@@ -3051,6 +3050,7 @@ xfrdone(dns_zone_t *zone, isc_result_t result) {
}
break;
}
zone_settimer(zone, now);
UNLOCK(&zone->lock);
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment