1323. [func] Option 'flush-zones-on-shutdown <boolean>;'.

This commit is contained in:
Mark Andrews 2002-06-13 05:54:34 +00:00
parent 935afdff81
commit cd9bfe5b25
2 changed files with 11 additions and 1 deletions

View file

@ -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]'.

View 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: