]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1323. [func] Option 'flush-zones-on-shutdown <boolean>;'.
authorMark Andrews <marka@isc.org>
Thu, 13 Jun 2002 05:54:34 +0000 (05:54 +0000)
committerMark Andrews <marka@isc.org>
Thu, 13 Jun 2002 05:54:34 +0000 (05:54 +0000)
CHANGES
bin/named/server.c

diff --git a/CHANGES b/CHANGES
index a25df11881ee5e5d37fa5de84e14a6c8ceae051c..380bc5c7c0f65f5136043c1c05f90743ea09f39f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1323.  [func]          Option 'flush-zones-on-shutdown <boolean>;'.
+
 1322.  [func]          Extended rndc dumpdb to support dumping of zones and
                        view selection: 'dumpdb [-all|-zones|-cache] [view]'.
 
index fead20c07c7f647bcb7151417f239e1397106c53..c991cae1c8990bbbcb8665b4916d4df5d08695fc 100644 (file)
@@ -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 <config.h>
 
@@ -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: