Skip to content

Commit

Permalink
Merge pull request #6366 from rgacogne/dnsdist-exceed-reserve
Browse files Browse the repository at this point in the history
dnsdist: Reserve according to the _query_ ring size in exceedQueryGen
  • Loading branch information
rgacogne committed Mar 20, 2018
2 parents aaee3e9 + 8d752b2 commit 4d5bdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnsdist-lua-inspection.cc
Expand Up @@ -179,7 +179,7 @@ static counts_t exceedQueryGen(unsigned int rate, int seconds, std::function<voi

{
ReadLock rl(&g_rings.queryLock);
counts.reserve(g_rings.respRing.size());
counts.reserve(g_rings.queryRing.size());
for(const auto& c : g_rings.queryRing) {
if(seconds && c.when < cutoff)
continue;
Expand Down

0 comments on commit 4d5bdc2

Please sign in to comment.