mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-23 23:28:18 -04:00
1323. [func] Option 'flush-zones-on-shutdown <boolean>;'.
This commit is contained in:
parent
935afdff81
commit
cd9bfe5b25
2 changed files with 11 additions and 1 deletions
2
CHANGES
2
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]'.
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue