2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

don't apply cache-filename to "_bind" view.

This commit is contained in:
Mark Andrews 2002-07-04 05:03:46 +00:00
parent 53f9ddf27c
commit 268c7ef56b

View File

@ -15,7 +15,7 @@
* 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>
@ -650,7 +650,7 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
*/
obj = NULL;
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)));
if (!reused_cache)
CHECK(dns_cache_load(cache));