From: Peter van Dijk Date: Thu, 26 Jul 2018 15:05:14 +0000 (+0200) Subject: do not load Lua in the distributor thread X-Git-Tag: dnsdist-1.3.3~182^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6812%2Fhead;p=thirdparty%2Fpdns.git do not load Lua in the distributor thread --- 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();