[master] don't log when NZF file doesn't exist

4755.	[cleanup]	Silence unnecessary log message when NZF file doesn't
			exist. [RT #46186]
This commit is contained in:
Evan Hunt
2017-10-05 00:12:14 -07:00
parent c370305901
commit d7ee3ed488
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
4755. [cleanup] Silence unnecessary log message when NZF file doesn't
exist. [RT #46186]
4754. [bug] dns_zone_setview needs a two stage commit to properly
handle errors. [RT #45841]
+6 -1
View File
@@ -6908,6 +6908,11 @@ static isc_result_t
count_newzones(dns_view_t *view, ns_cfgctx_t *nzcfg, int *num_zonesp) {
isc_result_t result;
if (!isc_file_exists(view->new_zone_file)) {
*num_zonesp = 0;
return (ISC_R_SUCCESS);
}
/*
* In the case of NZF files, we also parse the configuration in
* the file at this stage.
@@ -7001,7 +7006,7 @@ setup_newzones(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
int i = 0;
isc_uint64_t mapsize = 0ULL;
REQUIRE (config != NULL);
REQUIRE(config != NULL);
if (vconfig != NULL)
voptions = cfg_tuple_get(vconfig, "options");