mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
don't apply cache-filename to "_bind" view.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: server.c,v 1.380 2002/06/26 04:48:12 marka Exp $ */
|
/* $Id: server.c,v 1.381 2002/07/04 05:03:46 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -650,7 +650,7 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
|
|||||||
*/
|
*/
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
result = ns_config_get(maps, "cache-file", &obj);
|
result = ns_config_get(maps, "cache-file", &obj);
|
||||||
if (result == ISC_R_SUCCESS) {
|
if (result == ISC_R_SUCCESS && strcmp(view->name, "_bind") != 0) {
|
||||||
CHECK(dns_cache_setfilename(cache, cfg_obj_asstring(obj)));
|
CHECK(dns_cache_setfilename(cache, cfg_obj_asstring(obj)));
|
||||||
if (!reused_cache)
|
if (!reused_cache)
|
||||||
CHECK(dns_cache_load(cache));
|
CHECK(dns_cache_load(cache));
|
||||||
|
Reference in New Issue
Block a user