*/
#pragma once
+#include <atomic>
#include <boost/utility.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
pdns::stat_t d_nsecWildcardHits{0};
pdns::stat_t d_nsec3WildcardHits{0};
pdns::stat_t d_entriesCount{0};
- uint64_t d_maxEntries{0};
+ std::atomic<uint64_t> d_maxEntries{0};
};
extern std::unique_ptr<AggressiveNSECCache> g_aggressiveNSECCache;
Change the maximum number of entries in the NSEC aggressive cache. If the
cache is disabled by setting its size to 0 in the config, the cache size
cannot be set by this command. Setting the size to 0 by this command still
- keeps the cache, but makes it mostly ineffective as it emptied periodically.
+ keeps the cache, but makes it mostly ineffective as it is emptied periodically.
set-max-cache-entries *NUM*
Change the maximum number of entries in the DNS cache. If reduced, the
"reload-lua-config [filename] (re)load Lua configuration file\n"
"reload-zones reload all auth and forward zones\n"
"set-ecs-minimum-ttl value set ecs-minimum-ttl-override\n"
- "set-max-aggr-nsec-cache-size set new maximum aggressive NSEC cache size\n"
+ "set-max-aggr-nsec-cache-size value set new maximum aggressive NSEC cache size\n"
"set-max-cache-entries value set new maximum record cache size\n"
"set-max-packetcache-entries val set new maximum packet cache size\n"
"set-minimum-ttl value set minimum-ttl-override\n"