]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2015. [cleanup] use-additional-cache is now acache-enable for
authorMark Andrews <marka@isc.org>
Wed, 3 May 2006 01:54:54 +0000 (01:54 +0000)
committerMark Andrews <marka@isc.org>
Wed, 3 May 2006 01:54:54 +0000 (01:54 +0000)
                        consistancy.  Default acache-enable off in BIND 9.4
                        as it requires memory usage to be configured.
                        It may be enabled by default in BIND 9.5 once we
                        have more experience with it.

CHANGES
bin/named/config.c
bin/named/server.c
doc/arm/Bv9ARM-book.xml
lib/isccfg/namedconf.c

diff --git a/CHANGES b/CHANGES
index 708c68756110c82efad617f9f60441594073032a..f150696946d0cfa34af95b646c83143fbe33beb7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+2015.  [cleanup]       use-additional-cache is now acache-enable for
+                       consistancy.  Default acache-enable off in BIND 9.4
+                       as it requires memory usage to be configured.
+                       It may be enabled by default in BIND 9.5 once we
+                       have more experience with it.
+
 2014.  [func]          Statistics about acache now recorded and sent
                        to log. [RT #15976]
 
index 198322b79410bf2920ba1058f4a77eba531ad899..856d2f48dd1ec79d003bad070517d454febf7873 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: config.c,v 1.73 2006/03/09 23:21:53 marka Exp $ */
+/* $Id: config.c,v 1.74 2006/05/03 01:54:53 marka Exp $ */
 
 /*! \file */
 
@@ -132,7 +132,7 @@ options {\n\
        check-names slave warn;\n\
        check-names response ignore;\n\
        check-mx warn;\n\
-       use-additional-cache true;\n\
+       acache-enable no;\n\
        acache-cleaning-interval 60;\n\
        max-acache-size 0;\n\
        dnssec-enable yes;\n\
index 94e0c0cb9f55277aa37c916c6bad5d547d470d20..9cab092b88deb2896b49a9e2d5817c34a96ed8b7 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: server.c,v 1.462 2006/03/09 23:39:00 marka Exp $ */
+/* $Id: server.c,v 1.463 2006/05/03 01:54:53 marka Exp $ */
 
 /*! \file */
 
@@ -968,11 +968,12 @@ configure_view(dns_view_t *view, const cfg_obj_t *config,
 
        /*
         * Create additional cache for this view and zones under the view
-        * unless explicitly disabled.
+        * if explicitly enabled.
+        * XXX950 default to on.
         */
        obj = NULL;
-       (void)ns_config_get(maps, "use-additional-cache", &obj);
-       if (obj == NULL || cfg_obj_asboolean(obj)) {
+       (void)ns_config_get(maps, "acache-enable", &obj);
+       if (obj != NULL && cfg_obj_asboolean(obj)) {
                cmctx = NULL;
                CHECK(isc_mem_create(0, 0, &cmctx));
                CHECK(dns_acache_create(&view->acache, cmctx, ns_g_taskmgr,
index 55285f1db0736a4f3ddc6dff3dd16c01e87e735a..80cfd85331d926d25bb8664b5ab1c2127ce9f9dc 100644 (file)
@@ -18,7 +18,7 @@
  - PERFORMANCE OF THIS SOFTWARE.
 -->
 
-<!-- File: $Id: Bv9ARM-book.xml,v 1.299 2006/03/09 23:21:54 marka Exp $ -->
+<!-- File: $Id: Bv9ARM-book.xml,v 1.300 2006/05/03 01:54:54 marka Exp $ -->
 <book xmlns:xi="http://www.w3.org/2001/XInclude">
   <title>BIND 9 Administrator Reference Manual</title>
 
@@ -4492,7 +4492,7 @@ category notify { null; };
     <optional> root-delegation-only <optional> exclude { <replaceable>namelist</replaceable> } </optional> ; </optional>
     <optional> querylog <replaceable>yes_or_no</replaceable> ; </optional>
     <optional> disable-algorithms <replaceable>domain</replaceable> { <replaceable>algorithm</replaceable>; <optional> <replaceable>algorithm</replaceable>; </optional> }; </optional>
-    <optional> use-additional-cache <replaceable>yes_or_no</replaceable> ; </optional>
+    <optional> acache-enable <replaceable>yes_or_no</replaceable> ; </optional>
     <optional> acache-cleaning-interval <replaceable>number</replaceable>; </optional>
     <optional> max-acache-size <replaceable>size_spec</replaceable> ; </optional>
     <optional> clients-per-query <replaceable>number</replaceable> ; </optional>
@@ -7508,7 +7508,7 @@ query-source-v6 address * port *;
             Thus, if the response performance does not matter and memory
             consumption is much more critical, the
             <command>acache</command> mechanism can be
-            disabled by setting <command>use-additional-cache</command> to
+            disabled by setting <command>acache-enable</command> to
             <command>no</command>.
             It is also possible to specify the upper limit of memory
             consumption
@@ -7540,11 +7540,11 @@ query-source-v6 address * port *;
           <variablelist>
 
             <varlistentry>
-              <term><command>use-additional-cache</command></term>
+              <term><command>acache-enable</command></term>
               <listitem>
                 <para>
-                  If <command>yes</command>, additional section caching is enabled.
-                  The default value is <command>yes</command>.
+                  If <command>yes</command>, additional section caching is
+                 enabled.  The default value is <command>no</command>.
                 </para>
               </listitem>
             </varlistentry>
index a37285d703fddad448ba5994ab1deaaee99ed032..cc34ec864c9e8a24add0ae0e7bcbefb6f7ddc669 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: namedconf.c,v 1.68 2006/03/09 23:21:54 marka Exp $ */
+/* $Id: namedconf.c,v 1.69 2006/05/03 01:54:54 marka Exp $ */
 
 /*! \file */
 
@@ -774,7 +774,7 @@ view_clauses[] = {
           CFG_CLAUSEFLAG_MULTI },
        { "dnssec-accept-expired", &cfg_type_boolean, 0 },
        { "ixfr-from-differences", &cfg_type_ixfrdifftype, 0 },
-       { "use-additional-cache", &cfg_type_boolean, 0 },
+       { "acache-enable", &cfg_type_boolean, 0 },
        { "acache-cleaning-interval", &cfg_type_uint32, 0 },
        { "max-acache-size", &cfg_type_sizenodefault, 0 },
        { "clients-per-query", &cfg_type_uint32, 0 },