]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
do not load Lua in the distributor thread
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 26 Jul 2018 15:05:14 +0000 (17:05 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 20 Aug 2018 14:29:59 +0000 (16:29 +0200)
(cherry picked from commit 3fe38b4b10f1e3208eac806eb4889730f0115c90)

pdns/pdns_recursor.cc

index 4bfa096a63f84cb6a37cdcc78ee8ea95f8fdf391..f6205d9051a7d60aae47296c80421eb2e372446c 100644 (file)
@@ -3227,7 +3227,7 @@ try
 #endif
   L<<Logger::Warning<<"Done priming cache with root hints"<<endl;
 
-  if(worker) {
+  if(worker && (!g_weDistributeQueries || t_id != s_distributorThreadID)) {
     try {
       if(!::arg()["lua-dns-script"].empty()) {
         t_pdl = std::make_shared<RecursorLua4>(::arg()["lua-dns-script"]);