]> 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>
Wed, 16 May 2018 15:22:02 +0000 (17:22 +0200)
pdns/pdns_recursor.cc

index 71d3a59188029739530bc0ef0d3a685b12b402ec..34f0341ad39e52896608349b658c30cc0a8c313d 100644 (file)
@@ -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<unsigned int>(s_distributorThreadID)) {
     g_log<<Logger::Error<<"distributeAsyncFunction() tried to assign a query to the distributor"<<endl;
     exit(1);
   }