]> granicus.if.org Git - pdns/commitdiff
dnsdist: Break out of the ring insertion loop once we are done
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 19 Mar 2018 15:46:09 +0000 (16:46 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 29 Mar 2018 09:37:51 +0000 (11:37 +0200)
pdns/dnsdist.hh

index 67b41ee8c4347532f7834c5e779e5bbe47a77697..a956eeb2391d71faae233f7725dc9b2e371cf745 100644 (file)
@@ -475,6 +475,7 @@ struct Rings {
       std::unique_lock<std::mutex> wl(d_shards[shardId]->respLock, std::try_to_lock);
       if (wl.owns_lock()) {
         d_shards[shardId]->respRing.push_back({when, requestor, name, qtype, usec, size, dh, backend});
+        return;
       }
     }