projects
/
pdns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a609acd
)
dnsdist: Break out of the ring insertion loop once we are done
author
Remi Gacogne
<remi.gacogne@powerdns.com>
Mon, 19 Mar 2018 15:46:09 +0000
(16:46 +0100)
committer
Remi Gacogne
<remi.gacogne@powerdns.com>
Thu, 29 Mar 2018 09:37:51 +0000
(11:37 +0200)
pdns/dnsdist.hh
patch
|
blob
|
history
diff --git
a/pdns/dnsdist.hh
b/pdns/dnsdist.hh
index 67b41ee8c4347532f7834c5e779e5bbe47a77697..a956eeb2391d71faae233f7725dc9b2e371cf745 100644
(file)
--- a/
pdns/dnsdist.hh
+++ b/
pdns/dnsdist.hh
@@
-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;
}
}