From: Remi Gacogne Date: Mon, 14 May 2018 07:36:15 +0000 (+0200) Subject: rec: Replace yet another 0 with s_distributorThreadID X-Git-Tag: dnsdist-1.3.1~89^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de0b293b5c66c4f30b2646808553239c489425a9;p=thirdparty%2Fpdns.git rec: Replace yet another 0 with s_distributorThreadID --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 71d3a59188..34f0341ad3 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2491,7 +2491,7 @@ void distributeAsyncFunction(const string& packet, const pipefunc_t& func) unsigned int hash = hashQuestion(packet.c_str(), packet.length(), g_disthashseed); unsigned int target = 1 + (hash % (g_pipes.size()-1)); - if(target == 0) { + if(target == static_cast(s_distributorThreadID)) { g_log<