From: Mark Andrews Date: Thu, 13 Jun 2002 05:54:34 +0000 (+0000) Subject: 1323. [func] Option 'flush-zones-on-shutdown ;'. X-Git-Tag: v9.0.1^2~8317 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=cd9bfe5b256a3e84ba090e8fcb5de0d6c50974ae;p=thirdparty%2Fbind9.git 1323. [func] Option 'flush-zones-on-shutdown ;'. --- diff --git a/CHANGES b/CHANGES index a25df11881e..380bc5c7c0f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1323. [func] Option 'flush-zones-on-shutdown ;'. + 1322. [func] Extended rndc dumpdb to support dumping of zones and view selection: 'dumpdb [-all|-zones|-cache] [view]'. diff --git a/bin/named/server.c b/bin/named/server.c index fead20c07c7..c991cae1c89 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.377 2002/06/13 05:12:53 marka Exp $ */ +/* $Id: server.c,v 1.378 2002/06/13 05:54:34 marka Exp $ */ #include @@ -2011,6 +2011,14 @@ load_configuration(const char *filename, ns_server_t *server, server->hostname_set = ISC_FALSE; } + obj = NULL; + result = ns_config_get(maps, "flush-zones-on-shutdown", &obj); + if (result == ISC_R_SUCCESS) { + server->flushonshutdown = cfg_obj_asboolean(obj); + } else { + server->flushonshutdown = ISC_FALSE; + } + result = ISC_R_SUCCESS; cleanup: