From 3fe38b4b10f1e3208eac806eb4889730f0115c90 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 26 Jul 2018 17:05:14 +0200 Subject: [PATCH] do not load Lua in the distributor thread --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 6d3c7ccae7..1bd772c1b5 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3603,7 +3603,7 @@ try setupNODThread(); #endif /* NOD_ENABLED */ - if(worker) { + if(worker && (!g_weDistributeQueries || t_id != s_distributorThreadID)) { try { if(!::arg()["lua-dns-script"].empty()) { t_pdl = std::make_shared(); -- 2.47.2