From 99f56e61854d2818de628d7226181d64dce24441 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 19 Mar 2018 16:46:09 +0100 Subject: [PATCH] dnsdist: Break out of the ring insertion loop once we are done --- pdns/dnsdist.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/dnsdist.hh b/pdns/dnsdist.hh index 67b41ee8c4..a956eeb239 100644 --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@ -475,6 +475,7 @@ struct Rings { std::unique_lock 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; } } -- 2.47.2