2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

613. [bug] "rndc reload zone" now reloads primary zones.

It previously only updated slave and stub zones,
			if an SOA query indicated an out of date serial.
This commit is contained in:
David Lawrence
2000-12-13 07:18:44 +00:00
parent fa67ca21f6
commit 3d509f54ac
3 changed files with 19 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.272 2000/12/12 23:05:56 bwelling Exp $ */
/* $Id: server.c,v 1.273 2000/12/13 07:18:42 tale Exp $ */
#include <config.h>
@@ -2226,6 +2226,7 @@ isc_result_t
ns_server_reloadcommand(ns_server_t *server, char *args) {
isc_result_t result;
dns_zone_t *zone = NULL;
dns_zonetype_t type;
UNUSED(server);
result = zone_from_args(server, args, &zone);
@@ -2234,7 +2235,11 @@ ns_server_reloadcommand(ns_server_t *server, char *args) {
if (zone == NULL) {
ns_server_reloadwanted(server);
} else {
dns_zone_forcereload(zone);
type = dns_zone_gettype(zone);
if (type == dns_zone_slave || type == dns_zone_stub)
dns_zone_refresh(zone);
else
dns_zone_load(zone);
dns_zone_detach(&zone);
}
return (ISC_R_SUCCESS);