#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+#include "syncres.hh"
#include "utility.hh"
#include "rec_channel.hh"
#include <boost/bind.hpp>
#endif
#include "misc.hh"
#include "recursor_cache.hh"
-#include "syncres.hh"
#include "negcache.hh"
#include <boost/function.hpp>
#include <boost/optional.hpp>
g_luaconfs.modify([who, why](LuaConfigItems& lci) {
lci.negAnchors[who] = why;
});
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeCache, who, true));
broadcastAccFunction<uint64_t>(boost::bind(pleaseWipePacketCache, who, true));
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeAndCountNegCache, who, true));
return "Added Negative Trust Anchor for " + who.toLogString() + " with reason '" + why + "'\n";
}
g_luaconfs.modify([entry](LuaConfigItems& lci) {
lci.negAnchors.erase(entry);
});
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeCache, entry, true));
broadcastAccFunction<uint64_t>(boost::bind(pleaseWipePacketCache, entry, true));
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeAndCountNegCache, entry, true));
if (!first) {
first = false;
removed += ",";
auto ds = unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make(what)));
lci.dsAnchors[who].insert(*ds);
});
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeCache, who, true));
broadcastAccFunction<uint64_t>(boost::bind(pleaseWipePacketCache, who, true));
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeAndCountNegCache, who, true));
L<<Logger::Warning<<endl;
return "Added Trust Anchor for " + who.toStringRootDot() + " with data " + what + "\n";
}
g_luaconfs.modify([entry](LuaConfigItems& lci) {
lci.dsAnchors.erase(entry);
});
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeCache, entry, true));
broadcastAccFunction<uint64_t>(boost::bind(pleaseWipePacketCache, entry, true));
+ broadcastAccFunction<uint64_t>(boost::bind(pleaseWipeAndCountNegCache, entry, true));
if (!first) {
first = false;
removed += ",";
::arg().set("lua-config-file") = *begin;
try {
- loadRecursorLuaConfig(::arg()["lua-config-file"], false);
+ luaConfigDelayedThreads delayedLuaThreads;
+ loadRecursorLuaConfig(::arg()["lua-config-file"], delayedLuaThreads);
+ startLuaConfigDelayedThreads(delayedLuaThreads);
L<<Logger::Warning<<"Reloaded Lua configuration file '"<<::arg()["lua-config-file"]<<"', requested via control channel"<<endl;
return "Reloaded Lua configuration file '"+::arg()["lua-config-file"]+"'\n";
}