]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
do not load Lua in the distributor thread 6812/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 26 Jul 2018 15:05:14 +0000 (17:05 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 26 Jul 2018 15:05:14 +0000 (17:05 +0200)
pdns/pdns_recursor.cc

index 6d3c7ccae791843cb7026243357a9b1e10bcd321..1bd772c1b56a6398641c6cb04a2568468e2750cf 100644 (file)
@@ -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<RecursorLua4>();