]> granicus.if.org Git - pdns/commitdiff
rec: Replace yet another 0 with s_distributorThreadID
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 14 May 2018 07:36:15 +0000 (09:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 15 May 2018 13:23:30 +0000 (15:23 +0200)
(cherry picked from commit 08cb9fd69a0c0df570b81a2cc1a64e15f7ac97ac)

pdns/pdns_recursor.cc

index 49ec16fd80f6d4b650f805e80244476b3ec1a88e..d2700ff1f80c600d2cd46d2bb8bb2b15b98215b9 100644 (file)
@@ -2298,7 +2298,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<unsigned int>(s_distributorThreadID)) {
     L<<Logger::Error<<"distributeAsyncFunction() tried to assign a query to the distributor"<<endl;
     exit(1);
   }