#include "lua-recursor4-ffi.hh"
string GenUDPQueryResponse(const ComboAddress& dest, const string& query);
-int getRecursorThreadId();
+unsigned int getRecursorThreadId();
// pdns_ffi_param_t is a lightuserdata
template<>
return theArg;
}
-int getRecursorThreadId()
+unsigned int getRecursorThreadId()
{
return t_id;
}
setupNODThread();
#endif /* NOD_ENABLED */
- if(worker && (!g_weDistributeQueries || t_id != s_distributorThreadID)) {
+ if(threadInfo.isWorker) {
try {
if(!::arg()["lua-dns-script"].empty()) {
t_pdl = std::make_shared<RecursorLua4>();