From 9d30f2c26761762f48a8d3c5fd99fe1c37e4b856 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 23 Apr 2019 15:02:56 +0200 Subject: [PATCH] dnsdist: remove maxEntries from newPacketCache opts maxEntries is already a mandatory parameter for `newPacketCache`. --- pdns/dnsdist-lua-bindings.cc | 4 ---- pdns/dnsdistdist/docs/reference/config.rst | 1 - 2 files changed, 5 deletions(-) diff --git a/pdns/dnsdist-lua-bindings.cc b/pdns/dnsdist-lua-bindings.cc index b29fc3edf3..64b48b6c58 100644 --- a/pdns/dnsdist-lua-bindings.cc +++ b/pdns/dnsdist-lua-bindings.cc @@ -275,10 +275,6 @@ void setupLuaBindings(bool client) keepStaleData = boost::get((*vars)["keepStaleData"]); } - if (vars->count("maxEntries")) { - maxEntries = boost::get((*vars)["maxEntries"]); - } - if (vars->count("maxNegativeTTL")) { maxNegativeTTL = boost::get((*vars)["maxNegativeTTL"]); } diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index b51b01ba9e..e81b706b72 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -614,7 +614,6 @@ See :doc:`../guides/cache` for a how to. * ``deferrableInsertLock=true``: bool - Whether the cache should give up insertion if the lock is held by another thread, or simply wait to get the lock. * ``dontAge=false``: bool - Don't reduce TTLs when serving from the cache. Use this when :program:`dnsdist` fronts a cluster of authoritative servers. * ``keepStaleData=false``: bool - Whether to suspend the removal of expired entries from the cache when there is no backend available in at least one of the pools using this cache. - * ``maxEntries``: int - The maximum number of entries in this cache. * ``maxNegativeTTL=3600``: int - Cache a NXDomain or NoData answer from the backend for at most this amount of seconds, even if the TTL of the SOA record is higher. * ``maxTTL=86400``: int - Cap the TTL for records to his number. * ``minTTL=0``: int - Don't cache entries with a TTL lower than this. -- 2.47.2