Skip to content

Commit

Permalink
Fix #7116, skip the insertion of the same continuation to pending dns
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizhong Zhang committed Aug 19, 2020
1 parent dfef432 commit c7707db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iocore/hostdb/HostDB.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,10 @@ HostDBContinuation::set_check_pending_dns()
{
Queue<HostDBContinuation> &q = hostDB.pending_dns_for_hash(hash.hash);
this->setThreadAffinity(this_ethread());
if (q.in(this)) {
Warning("Skip the insertion of the same continuation to pending dns");
return false;
}
HostDBContinuation *c = q.head;
for (; c; c = static_cast<HostDBContinuation *>(c->link.next)) {
if (hash.hash == c->hash.hash) {
Expand Down

0 comments on commit c7707db

Please sign in to comment.